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

Source version error missing version number

    XMLWordPrintable

Details

    • b137
    • Verified

    Description

      Compile this with -source 7:

      public class RepeatedAnnotations {
          @SuppressWarnings("a") @SuppressWarnings("b") void m() {}
      }

      Output:

      RepeatedAnnotations.java:3: error: repeated annotations are not supported in -source {0}
          @SuppressWarnings("a") @SuppressWarnings("b") void m() {}
                                 ^
        (use -source 8 or higher to enable repeated annotations)

      The "{0}" string is missing its actual value.

      Attachments

        Activity

          People

            dlsmith Dan Smith
            dlsmith Dan Smith
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: