[
https://issues.jboss.org/browse/JBIDE-8958?page=com.atlassian.jira.plugin...
]
Daniel Azarov updated JBIDE-8958:
---------------------------------
Description:
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.
EXECUTE: Add SomeNewQualifier to "In the bean" tab.
{color:red}*FAILURE:*{color} SomeNewQualifier, Any, Default qualifiers are in black
color.
{color:red}*ASSERT:*{color} SomeNewQualifier is in black colo but Any and Default are in
light gray color since you can't remove them in the wizard.
was:
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=Test.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.
EXECUTE: Add SomeNewQualifier to "In the bean" tab.
{color:red}*FAILURE:*{color} SomeNewQualifier, Any, Default qualifiers are in black
color.
{color:red}*ASSERT:*{color} SomeNewQualifier is in black colo but Any and Default are in
light gray color since you can't remove them in the wizard.
Unremovable qualifiers in "Specify CDI Bean for the Injection
Point" wizard in "In the Bean" tab should be in light gray color.
-------------------------------------------------------------------------------------------------------------------------------
Key: JBIDE-8958
URL:
https://issues.jboss.org/browse/JBIDE-8958
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: cdi (jsr-299)
Affects Versions: 3.3.0.M1
Reporter: Alexey Kazakov
Assignee: Daniel Azarov
Fix For: 3.3.0.M2
Attachments: AddQualifiersToBeanGray.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.
EXECUTE: Add SomeNewQualifier to "In the bean" tab.
{color:red}*FAILURE:*{color} SomeNewQualifier, Any, Default qualifiers are in black
color.
{color:red}*ASSERT:*{color} SomeNewQualifier is in black colo but Any and Default are in
light gray color since you can't remove them in the wizard.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira