Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-6512

Incorrect bean resolution for beans with qualifiers with annotation value.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.2.0.M2
    • 3.2.0.M1
    • cdi
    • None

      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.

              scabanovich Viacheslav Kabanovich (Inactive)
              alexeykazakov Alexey Kazakov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: