Uploaded image for project: 'JBoss WFK 2'
  1. JBoss WFK 2
  2. WFK2-66

Annotation literals implementing an annotation interface raise a warning in JBDS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.3.0.GA
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Workaround:
      Workaround Exists
    • Workaround Description:
      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.
    • Release Notes Docs Status:
      Not Required

      Description

      Description of problem:
      An annotation literal is a concept defined in Java EE 6, described e.g. in javadoc of http://docs.oracle.com/javaee/6/api/javax/enterprise/util/AnnotationLiteral.html. In this piece of official documentation, an example of usage shows an implementation of an annotation:

      public abstract class PayByQualifier
      extends AnnotationLiteral<PayBy>
      implements PayBy {}

      Despite this pattern being defined in the official Java EE documentation, JBDS (Eclipse) warns that annotations should not be used as superinterfaces.

      Version-Release number of selected component (if applicable):
      WFK 2.3.0.CR1
      JBDS 7.0.0.Beta2b

      How reproducible:
      In a project in JBDS, use the New Annotation Literal wizard to create an Annotation Literal.

      Actual results:
      A warning is shown, e.g.:
      "The annotation type RestRequest should not be used as a superinterface for RestRequestLiteral."

      Expected results:
      No warning should be displayed as this is an officially endorsed pattern.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              maschmid Marek Schmidt
              Reporter:
              rsmeral Ron Šmeral (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: