[weld-issues] [JBoss JIRA] Created: (WELD-438) InjectionPoint missing Annotated, Qualifiers for Produces when injecting Instance.get()
Jordan Ganoff (JIRA)
jira-events at lists.jboss.org
Mon Feb 15 12:09:10 EST 2010
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
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