Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12232

Make Quick Fix "Configure Problem Severity" work on Temporary annotations

XMLWordPrintable

    • 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

            dazarov_jira Daniel Azarov (Inactive)
            dazarov_jira Daniel Azarov (Inactive)
            Isaac Rooskov Isaac Rooskov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: