[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-6401) Don't take into account annotation members of a qualifier which is not annotated @javax.enterprise.util.NonBinding in bean resolving.

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Mon Jun 14 07:24:00 EDT 2010


     [ https://jira.jboss.org/browse/JBIDE-6401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Max Rydahl Andersen resolved JBIDE-6401.
----------------------------------------

    Resolution: Done


> Don't take into account annotation members of a qualifier which is not annotated @javax.enterprise.util.NonBinding in bean resolving.
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-6401
>                 URL: https://jira.jboss.org/browse/JBIDE-6401
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdi (jsr-299)
>    Affects Versions: 3.2.x
>            Reporter: Alexey Kazakov
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.2.0.M1
>
>
> For example we have the following injection point:
> @Inject @Expensive(cost=60, veryExpensive=true) Animal animal;
> Where:
> ...
> @Qualifier
> @interface Expensive {
>    boolean veryExpensive();
>    @Nonbinding int cost();  
> }
> Then both following beans match:
> @Expensive(cost=50, veryExpensive=true)
> class Halibut implements Animal {...}
> @Expensive(cost=60, veryExpensive=true)
> class RoundWhitefish implements Animal {...}
> But this bean doesn't:
> @Expensive(veryExpensive = false, cost = 50)
> class Sole implements Animal {...}
> org.jboss.tools.cdi.core.test.tck.ResolutionByTypeTest.testResolveByTypeWithNonBindingMembers() should pass.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list