[
https://jira.jboss.org/browse/JBIDE-6512?page=com.atlassian.jira.plugin.s...
]
Viacheslav Kabanovich commented on JBIDE-6512:
----------------------------------------------
Interface JBT does not allow resolving values. To do so reliably, it is necessary to build
AST and resolve values of its nodes. Since we try to avoid working with AST because it
would critically slow down CDI tools, I implement comparing of simple names only and add
test that will fail because of coincidence of simple names in different interfaces.
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