Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7196531

Duplicate error messages on repeating annotations

    XMLWordPrintable

Details

    • b56
    • 8
    • b82
    • generic
    • generic
    • Verified

    Description

      Error messages are repeated for both instances of a non-repeating annotations since the checkin of the repeating annotation feature. For example:

      import java.lang.annotation.*;
      class DupAnno {
        void test() {
          @A @A String [] s;
        }
      }

      gives the output:

      DupAnno.java:11: error: duplicate annotation, the declaration of A does not have a ContainedBy annotation
          @A @A String [] s;
          ^
      DupAnno.java:11: error: duplicate annotation, the declaration of A does not have a ContainedBy annotation
          @A @A String [] s;
             ^

      Pre repeating annotation behaviour was only one error.

      Attachments

        Activity

          People

            jfranck Joel Borggrén-Franck (Inactive)
            jfranck Joel Borggrén-Franck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: