[weld-issues] [JBoss JIRA] Closed: (CDITCK-185) Session bean extending session bean

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Dec 7 12:56:03 EST 2010


     [ https://jira.jboss.org/browse/CDITCK-185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed CDITCK-185.
----------------------------

    Resolution: Done


> 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list