[weld-issues] [JBoss JIRA] Commented: (WELD-824) injection/initializer/observer inheritance broken on Beans registered through BBD.addAnnotatedType()

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Thu Jan 13 03:30:49 EST 2011


    [ https://issues.jboss.org/browse/WELD-824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12575192#comment-12575192 ] 

Jozef Hartinger commented on WELD-824:
--------------------------------------

Added testcase org.jboss.weld.tests.inheritance.weld824.SuperclassTest

Note that the test passes when run with weld-embedded but fails on jboss-remote. Thus, this might be rather JBAS issue.

> injection/initializer/observer inheritance broken on Beans registered through BBD.addAnnotatedType()
> ----------------------------------------------------------------------------------------------------
>
>                 Key: WELD-824
>                 URL: https://issues.jboss.org/browse/WELD-824
>             Project: Weld
>          Issue Type: Bug
>          Components: Class Beans (Managed and Session)
>    Affects Versions: 1.1.0.CR4
>            Reporter: Jozef Hartinger
>
> I am having two classes: Foo and Bar where Bar extends Foo. Both these classes are outside of BDA (a jar with no beans.xml placed in WEB-INF/lib of a web app that has beans.xml) The Bar class is registered through a portable Extension (BeforeBeanDiscovery.addAnnotatedType()).
> The problem is that while injection/initializers/event observers defined on the Bar class work as expected, the ones defined on the Foo class are never called. (Note that the Foo class itself is not registered as a Bean - Nevertheless, CDI services should be enabled on Bar's superclasses according to the spec)

-- 
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