Antoine Sabot-Durand
created WELD-1552
InjectionPoint resolution not conform to CDI 1.1 spec
Issue Type:
Bug
Affects Versions:
2.1.0.CR1, 2.0.2.Final
Assignee:
Jozef Hartinger
Components:
Built-in beans
Created:
12/Nov/13 9:29 AM
Description:
If I define a producer with an injection point for buil-in bean InjectionPoint like this :
@Produces
@Named
public OAuthSession getCurrentSession(InjectionPoint ip) {…}
And I call {currentSession} in JSF or JSP page, I get an exception
WELD-09: Dynamic lookup of Implicit Bean [javax.enterprise.inject.spi.InjectionPoint] with qualifiers [@Default] is not supported
thrown by InjectionPointBean.getInjectionPoint() method.
In Weld 1.x I had a null value injected in my InjectionPoint.
According to the CDI 1.1 spec : "6.5.3. Contextual reference for a bean", the correct behavior should be the Weld 1.x one : returning a null InjectionPoint.
Environment:
Tested on Wildfly 8.0 Alpha 1 and Glassfish 4.0
Project:
Weld
Priority:
Major
Reporter:
Antoine Sabot-Durand
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues