-
Feature Request
-
Resolution: Done
-
Major
-
None
-
The Quick Fix, Configure Problem Severity, can now be utilized with temporary annotations.
-
Documented as Feature Request
Test case:
EXECUTE:
1. Create CDI project
2. Create class TestProducer:
import javax.ejb.Stateless; import javax.enterprise.inject.Produces; @Stateless public class TestProducer { public FunnelWeaver<String> anotherFunnelWeaver; String s="nnnnnn"; }
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