[
https://issues.jboss.org/browse/JBIDE-12232?page=com.atlassian.jira.plugi...
]
Daniel Azarov updated JBIDE-12232:
----------------------------------
Description:
Test case:
EXECUTE:
1. Create CDI project
2. Create class TestProducer:
{code}
import javax.ejb.Stateless;
import javax.enterprise.inject.Produces;
@Stateless
public class TestProducer {
public FunnelWeaver<String> anotherFunnelWeaver;
String s="nnnnnn";
}
{code}
3. Open class TestProducer in Java Editor
4. add annotation @Produces to field anotherFunnelWeaver.
5. Do not save the editor
ASSERT: annotation @Produces should be marked with problem annotation "Non-static
field of a session bean class is annotated @Produces [JSR-299 §3.4.2]"
EXECUTE:
6. Point mouse to annotation @Produces
ASSERT:
Quick fix "Configure Problem Severity 'illegal producer in session
bean'" should be in the quick fix list of the hoover
Make Quick Fix "Configure Problem Severity" work on
Temporary annotations
-------------------------------------------------------------------------
Key: JBIDE-12232
URL:
https://issues.jboss.org/browse/JBIDE-12232
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: common/jst/core
Reporter: Daniel Azarov
Assignee: Daniel Azarov
Labels: new_and_noteworthy
Fix For: 3.4.0.M1
Test case:
EXECUTE:
1. Create CDI project
2. Create class TestProducer:
{code}
import javax.ejb.Stateless;
import javax.enterprise.inject.Produces;
@Stateless
public class TestProducer {
public FunnelWeaver<String> anotherFunnelWeaver;
String s="nnnnnn";
}
{code}
3. Open class TestProducer in Java Editor
4. add annotation @Produces to field anotherFunnelWeaver.
5. Do not save the editor
ASSERT: annotation @Produces should be marked with problem annotation "Non-static
field of a session bean class is annotated @Produces [JSR-299 §3.4.2]"
EXECUTE:
6. Point mouse to annotation @Produces
ASSERT:
Quick fix "Configure Problem Severity 'illegal producer in session
bean'" should be in the quick fix list of the hoover
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira