Managed bean not given a @Named annotation in Non-Contextual injection test
---------------------------------------------------------------------------

                 Key: CDITCK-214
                 URL: https://issues.jboss.org/browse/CDITCK-214
             Project: CDI TCK
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Tests
    Affects Versions: 1.0.4.Final
            Reporter: Bob Nettleton


The following test case:

org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.InjectionIntoNonContextualComponentTest.testInjectionIntoJSFManagedBean

verifies that a JSF managed bean can be a target for CDI injection.  

The .jsp in the test case (ManagedBeanTestPage.jsp) relies on an Expression 
Langage name ("farm") in order to locate this bean.  

The managed bean in question:

org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.Farm

does not include a @Named annotation.  

Section 2.5.3 of the CDI Specification states that:

"If @Named is not declared by the bean, nor by its stereotypes, a bean has no 
EL name."


Based on this line in the spec, it appears that this test may be in error.  If 
the bean does not have an EL name, the bean cannot be located by the EL 
Resolver.  


If my interpretation of the spec is correct here, I request that this test be 
excluded.  



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues

Reply via email to