[weld-issues] [JBoss JIRA] (CDITCK-274) CreateInjectionPointTest.testInvalidParameter() too strict

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Mon May 21 03:04:17 EDT 2012


Jozef Hartinger created CDITCK-274:
--------------------------------------

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

        


More information about the weld-issues mailing list