[weld-issues] [JBoss JIRA] Closed: (WELD-438) InjectionPoint missing Annotated, Qualifiers for Produces when injecting Instance.get()

Pete Muir (JIRA) jira-events at lists.jboss.org
Wed Feb 17 16:53:10 EST 2010


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

Pete Muir closed WELD-438.
--------------------------

    Resolution: Done
      Assignee: Pete Muir


All working correctly now :-)

We generate a correct injection point for the bean, we do this by taking the original injection point and adjusting the qualifiers and type to match the selected ones.

Thanks

> InjectionPoint missing Annotated, Qualifiers for Produces when injecting Instance.get()
> ---------------------------------------------------------------------------------------
>
>                 Key: WELD-438
>                 URL: https://jira.jboss.org/jira/browse/WELD-438
>             Project: Weld
>          Issue Type: Bug
>          Components: Producers (Methods, Fields and Disposers)
>    Affects Versions: 1.0.1.CR2
>            Reporter: Jordan Ganoff
>            Assignee: Pete Muir
>             Fix For: 1.0.1.GA
>
>
> The InjectionPoint passed to the producer method as a result of calling Instance.get() returns null for getAnnotated(), getMember(), and has no qualifiers (regardless of whether the declaration defined them or not).
> Here's a sample of what I'm talking about:
> Test.java:
> @Inject @Destination Instance<Topic> t;
> @Test
> public void testInjection()
> {
>    assertNotNull(t.get());
> }
> TopicProducer.java:
> @Produces @Destination
> public Topic getTopic(InjectionPoint ip) { ... }

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