[
https://issues.jboss.org/browse/CDITCK-274?page=com.atlassian.jira.plugin...
]
Martin Kouba resolved CDITCK-274.
---------------------------------
Resolution: Done
{code}
public class NotABean {
@Inject
public void init(@Named Magazine magazine) {
}
}
{code}
CreateInjectionPointTest.testInvalidParameter() too strict
----------------------------------------------------------
Key: CDITCK-274
URL:
https://issues.jboss.org/browse/CDITCK-274
Project: CDI TCK
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Tests
Affects Versions: 1.1.0.Alpha2
Reporter: Jozef Hartinger
Assignee: Martin Kouba
Fix For: 1.1.0.Alpha3
{quote}
The method BeanManager.createInjectionPoint() returns a container provided implementation
of InjectionPoint for
a given AnnotatedField or AnnotatedParameter or throws an IllegalArgumentException if
there is a definition error
associated with the injection point.
{quote}
However, the definition error in the NotABean class is not associated with the injection
point but with an initializer method that defines the injection point.
{code:JAVA}
public class NotABean {
public NotABean(String name) {
}
@Inject
@Produces
public void init(Magazine magazine) {
}
}
{code}
The specification does not require the defining member nor class to be validated.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira