[weld-issues] [JBoss JIRA] Commented: (CDITCK-185) Session bean extending session bean
Pete Muir (JIRA)
jira-events at lists.jboss.org
Sat Oct 30 16:51:54 EDT 2010
[ https://jira.jboss.org/browse/CDITCK-185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12560421#action_12560421 ]
Pete Muir commented on CDITCK-185:
----------------------------------
Converted to EJB 3.1 jar in 1.0 branch
> Session bean extending session bean
> -----------------------------------
>
> Key: CDITCK-185
> URL: https://jira.jboss.org/browse/CDITCK-185
> Project: CDI TCK
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Tests
> Affects Versions: 1.0.1.CR1
> Reporter: Lance Andersen
> Fix For: 1.0.2.CR3
>
>
> The EJB 3.0 Spec states the following in section "4.6.2 Session Bean Class":
> "The session bean class may have superclasses and/or superinterfaces. ......
> A session bean class must not have a superclass that is itself a session bean class."
> Problem Description:
> According to the ejb-jar.xml, this is an ejb 3.0 ejb-jar:
> <?xml version="1.0" encoding="UTF-8"?>
> <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
> version="3.0">
> </ejb-jar>
> So, we have an EJB 3.0 application. Yet, we see declared:
> @Stateful
> public class Farmer implements FarmerLocal {
> and
> @Stateful
> public class LazyFarmer extends Farmer implements LazyFarmerLocal, FarmerLocal {
> Farmer being extended by LazyFarmer violates the spec mentioned above. I believe this is allowed in the 3.1 spec, but not the 3.0 Spec.
> Tests Affected:
> testSpecializingBeanHasBindingsOfSpecializedAndSpecializingBean
> testSpecializingBeanHasNameOfSpecializedBean
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list