]
Daniel Azarov updated JBIDE-8977:
---------------------------------
Attachment: AddQualifiersToBean1.png
AddQualifiersToBean2.png
AddQualifiersToBean3.png
"Specify CDI Bean for the Injection Point" wizard should
show/hide Default qualifier according to JSR-299 §2.3.1
----------------------------------------------------------------------------------------------------------------
Key: JBIDE-8977
URL:
https://issues.jboss.org/browse/JBIDE-8977
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.3.0.M1
Reporter: Daniel Azarov
Assignee: Daniel Azarov
Fix For: 3.3.0.M2
Attachments: AddQualifiersToBean1.png, AddQualifiersToBean2.png,
AddQualifiersToBean3.png
EXECUTE: Create a CDI project (or enable CDI support on some existing project).
EXECUTE: Create
{code:title=FooBean.java|borderStyle=solid}
package org.test;
public class FooBean {
}
{code}
{code:title=FooBeanX.java|borderStyle=solid}
package org.test;
public class FooBeanX extends FooBean {
}
{code}
{code:title=TestBean.java|borderStyle=solid}
package org.test;
import javax.inject.Inject;
public class TestBean {
@Inject FooBean foo;
}
{code}
EXECUTE: Build the project.
ASSERT: There is a problem marker on @Inject FooBean foo: Multiple beans are eligible for
injection to the injection point [JSR-299 §5.2.1]
EXECUTE: Click on the problem to show all the available quick fixes.
EXECUTE: Select Specify FooBeanX Bean for the Injection Point.
ASSERT: Specify CDI Bean for the Injection Point wizard appears.
EXECUTE: Click on "Create New Qualifier" button.
EXECUTE: Input "SomeNewQualifier" as a name of the qualifier and press Finish.
{color:red}*FAILURE:*{color} The Default qualifier still in "In The Bean" list
--
This message is automatically generated by JIRA.
For more information on JIRA, see: