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

Missing quickfixes for HttpMethod without Target and Retention annotations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0.CR1
    • 4.2.0.CR1
    • webservices
    • Hide

      STEP: Create Dynamic Web Project with JAX-RS Support
      STEP: Create MyAnnot annotation

      import javax.ws.rs.HttpMethod;
      
      @HttpMethod(value = "Method")
      public @interface MyAnnot {
      
      }
      

      ASSERT: There are 2 errors:

      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.
      

      STEP: Use quick fixes to solve these problems
      FAIL: Quick fixes are missing

      Show
      STEP: Create Dynamic Web Project with JAX-RS Support STEP: Create MyAnnot annotation import javax.ws.rs.HttpMethod; @HttpMethod(value = "Method" ) public @ interface MyAnnot { } ASSERT: There are 2 errors: 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. STEP: Use quick fixes to solve these problems FAIL: Quick fixes are missing

      1. JBIDE-18256.jpg
        101 kB
        Radoslav Rábara

          xcoulon@redhat.com Xavier Coulon
          rrabara Radoslav Rábara (Inactive)
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

            Created:
            Updated:
            Resolved: