[
https://issues.jboss.org/browse/JBIDE-8957?page=com.atlassian.jira.plugin...
]
Daniel Azarov updated JBIDE-8957:
---------------------------------
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.
{color:red}*FAILURE:*{color} The SomeNewQualifier appears in "Available" tab
instead of "In the bean" tab.
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.
{color:red}*FAILURE:*{color} The SomeNewQualifier appears in "Available" tab
instead of "In the bean" tab.
If you create a new qualifier in "Specify CDI Bean for the
Injection Point" wizard then this qualifier should appear "In the Bean"
tab.
---------------------------------------------------------------------------------------------------------------------------------------
Key: JBIDE-8957
URL:
https://issues.jboss.org/browse/JBIDE-8957
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.3.0.M1
Reporter: Alexey Kazakov
Assignee: Daniel Azarov
Fix For: 3.3.0.M2
Attachments: AddQualifiersToBean.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 SomeNewQualifier appears in "Available" tab
instead of "In the bean" tab.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira