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

Source version error missing version number

XMLWordPrintable

    • b137
    • Verified

      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.

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

              Created:
              Updated:
              Resolved: