[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-6401) Don't take into account annotation members of a qualifier which is not annotated @javax.enterprise.util.NonBinding in bean resolving.
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Wed Jun 2 11:13:45 EDT 2010
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.next
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.2.next
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