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

Improve quick fixes for @HttpMethod validation errors

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 4.0.0.Beta1
    • 4.0.0.Alpha1
    • webservices
    • None

    Description

      If I have this annotation:

      @HttpMethod(value = "METHOD")
      public @interface MyAnnot {
      
      }
      

      there are two errors in markers view:

      • The HTTP Method should have a @Retention(RetentionPolicy.RUNTIME) annotation on its type.
      • The HTTP Method should have a @Target(ElementType.METHOD) annotation on its type.

      For @Target marker there is quick fix providing adding @Target annotation into class. However there is no such quick fix for @Retention marker, only "Configure Problem Severity" is offered. There should be definitely similar quick fix as for @Target marker.

      Attachments

        Issue Links

          Activity

            People

              xcoulon@redhat.com Xavier Coulon
              jjankovi Jaroslav Jankovič (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: