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

Warn when a JAX-RS HTTP Method has no valid @Target and @Retention annotations aside of the @HttpMethod annotation

XMLWordPrintable

    • Hide
      New annotation has been added that is necessary for a JAX-RS HTTP method to be valid:

      @Target({ElementType.METHOD})
      @Retention(RetentionPolicy.RUNTIME)

      If there are any annotations missing, validation messages will appear at the @HttpMethod annotation level.
      Show
      New annotation has been added that is necessary for a JAX-RS HTTP method to be valid: @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) If there are any annotations missing, validation messages will appear at the @HttpMethod annotation level.
    • Documented as Feature Request

      To be valid and usable, a JAX-RS HTTP Method should also be annotated with

      @Target({ElementType.METHOD})
      @Retention(RetentionPolicy.RUNTIME)
      

      In case of missing annotations, the validation messages should be put at the @HttpMethod annotation level.

      A quickFix should be provided, too.

            xcoulon@redhat.com Xavier Coulon
            xcoulon@redhat.com Xavier Coulon
            Isaac Rooskov Isaac Rooskov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: