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

Annotation literals should not raise a warning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • 4.1.0.Alpha2
    • None
    • upstream
    • None
    • Workaround Exists
    • Hide

      You can disable it in Window->Preferences->Java->Compiler->Error/Warnings->Annotations->Annotation is used as super interface.

      Show
      You can disable it in Window->Preferences->Java->Compiler->Error/Warnings->Annotations->Annotation is used as super interface.

      The warning

      The annotation type Foo should not be used as a superinterface for FooLiteral 
      

      seems unnecessary, since the pattern of implementing an annotation type is shown as an example in the specification.
      Also, it makes the behaviour of JBoss Tools quite strange in that the code generated by the Annotation Literal Wizard raises a warning.

            alexeykazakov Alexey Kazakov
            rsmeral Ron Šmeral (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: