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

9.6.3: Typo '@Interface' in example 2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 9
    • 8
    • specification

      Currently [1] contains following text:

      Example 9.6.3-2. Restricting Where Annotations May Repeat
      ...
      @Interface FooContainer {
          Foo[] value();
      }

      Please note "Interface" above; it's started from uppercase letter 'I' however it should have been started from lowercase letter since 'interface' is a Java keyword.

      [1] http://docs.oracle.com/javase/specs/jls/se8/html/jls-9.html#d5e15739

            abuckley Alex Buckley
            grakov Georgiy Rakov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: