[ 
https://issues.jboss.org/browse/CDITCK-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12666786#comment-12666786
 ] 

Martin Kouba commented on CDITCK-211:
-------------------------------------

I don't think this is an impl bug. 

*2.7.1.3. Declaring a @Named stereotype* states:
"A stereotype may declare an empty @Named annotation, which specifies that 
every bean with the stereotype has a defaulted name when a name is not 
explicitly specified by the bean."

This does not say that declaring the stereotype with @Named results in adding 
@Named qualifier to the set of bean qualifiers. It only says that the bean 
should have the default name. Therefore aforementioned code should throw 
UnsatisfiedDependencyException.



                
> Test that beans which are @Named via a stereotype are selectable with 
> Instance.select()
> ---------------------------------------------------------------------------------------
>
>                 Key: CDITCK-211
>                 URL: https://issues.jboss.org/browse/CDITCK-211
>             Project: CDI TCK
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Shane Bryzak
>            Priority: Minor
>
> For example, say we have the following bean:
> public @Model class Foo implements IFoo { }
> And we have the following injection point within another bean:
>   @Inject Instance<Foo> fooInstance;
> Check that it is possible to select it
>   // This must not result in an UnsatisfiedDependencyException
>   Foo foo = fooInstance.select(new NamedLiteral("foo")).get();

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

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

Reply via email to