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

Quick Fix for NameBinding without Target annotation is disabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 4.30.x
    • 4.2.0.CR1
    • webservices
    • Hide

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

      import javax.ws.rs.NameBinding;
      
      @NameBinding
      public @interface Authorized {
      
      }
      

      ASSERT: There are 2 errors in Problems view:

      The Name Binding should have a @Retention(RetentionPolicy.RUNTIME) annotation on its type.
      
      The Name Binding should have a @Target(ElementType.METHOD) annotation on its type.
      

      STEP: Use Quick Fix to fix missing @Retention annotation via Problems view (left click on the problem in Problems View and then select "Quick Fix" in the context menu)
      ASSERT: Quick Fix was applied
      STEP: Use another Quick Fix to fix missing @Target annotation via Problems view
      FAIL: Option "Quick Fix" is disabled

      Show
      STEP: Create Dynamic Web Project with JAX-RS Support STEP: Create Authorized annotation import javax.ws.rs.NameBinding; @NameBinding public @ interface Authorized { } ASSERT: There are 2 errors in Problems view: The Name Binding should have a @Retention(RetentionPolicy.RUNTIME) annotation on its type. The Name Binding should have a @Target(ElementType.METHOD) annotation on its type. STEP: Use Quick Fix to fix missing @Retention annotation via Problems view (left click on the problem in Problems View and then select "Quick Fix" in the context menu) ASSERT: Quick Fix was applied STEP: Use another Quick Fix to fix missing @Target annotation via Problems view FAIL: Option "Quick Fix" is disabled
    • Workaround Exists
    • Hide

      Actiave any other view and then again Problems view. Quick fix become enabled.

      Show
      Actiave any other view and then again Problems view. Quick fix become enabled.
    • -

          Unassigned Unassigned
          rrabara Radoslav RĂ¡bara (Inactive)
          Votes:
          0 Vote for this issue
          Watchers:
          3 Start watching this issue

            Created:
            Updated: