[webbeans-issues] [JBoss JIRA] Commented: (WBRI-158) Two dependent instances of the same bean injected into a bean aren't both destroyed on bean destruction

Nicklas Karlsson (JIRA) jira-events at lists.jboss.org
Sat Mar 7 16:07:22 EST 2009


    [ https://jira.jboss.org/jira/browse/WBRI-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12456054#action_12456054 ] 

Nicklas Karlsson commented on WBRI-158:
---------------------------------------

Needs equals() and hashcode() in couple of places. 

e.g. in the case of 

@Current public Foo foo;
@Current public Foo foo2;

Beans.getFieldInjectionPoints only sees one injected field since AnnotatedClass.getMetaAnnotatedFields doesn't distinguish between them (since AnnotatedFieldImpl doesn't have equals/hashcode overridden)

> Two dependent instances of the same bean injected into a bean aren't both destroyed on bean destruction
> -------------------------------------------------------------------------------------------------------
>
>                 Key: WBRI-158
>                 URL: https://jira.jboss.org/jira/browse/WBRI-158
>             Project: Web Beans
>          Issue Type: Bug
>          Components: Contexts
>            Reporter: Pete Muir
>            Assignee: Nicklas Karlsson
>             Fix For: 1.0.0.BETA2
>
>
> See TCK - DependentContextTest.testDestroyingSimpleParentDestroysDependentsOfSameBean

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the weld-issues mailing list