[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-6512) Incorrect bean resolution for beans with qualifiers with annotation value.

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Mon Jun 21 12:32:46 EDT 2010


Incorrect bean resolution for beans with qualifiers with annotation value.
--------------------------------------------------------------------------

                 Key: JBIDE-6512
                 URL: https://jira.jboss.org/browse/JBIDE-6512
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: cdi (jsr-299)
    Affects Versions: 3.2.0.M1
            Reporter: Alexey Kazakov
            Assignee: Viacheslav Kabanovich
             Fix For: 3.2.0.M2


Take into account that annotation member type may be imported in different ways:

If the annotation member type is imported as

import static org.jboss.jsr299.tck.tests.jbt.resolution.PayBy.PaymentMethod.CHEQUE;

but the same qualifier declared in the bean as

import org.jboss.jsr299.tck.tests.jbt.resolution.PayBy.PaymentMethod;
@PayBy(PaymentMethod.CHEQUE)
...

then both
@Inject @PayBy(CHEQUE) AsynchronousPaymentProcessor chequePaymentProcessor;
and
@Inject @PayBy(PaymentMethod.CHEQUE) AsynchronousPaymentProcessor chequePaymentProcessor2;
should be resolved.

All the tests in org.jboss.tools.cdi.core.test.tck.QualifierWithMembersTest 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