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

Terminology mismatch between JLS17-3.9 and SE17's javax.lang.model.SourceVersion method specs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 18
    • 17
    • core-libs

      SE17's specification of javax.lang.model.SourceVersion methods
      https://docs.oracle.com/en/java/javase/17/docs/api/java.compiler/javax/lang/model/SourceVersion.html
      uses "restricted keywords and restricted identifiers" terms.
      Methods that use these terms refer to Java Language Specification.

      However JLS17 doesn't mention "restricted keywords" or "restricted identifiers" any more; instead the new term seems to be "contextual keywords"
      https://docs.oracle.com/javase/specs/jls/se17/html/jls-3.html#jls-3.9

      "restricted keywords" / "restricted identifiers" are present in JLS16
      https://docs.oracle.com/javase/specs/jls/se16/html/jls-3.html#jls-3.9

      "restricted keywords" first appeared in JLS9
      https://docs.oracle.com/javase/specs/jls/se9/html/jls-3.html#jls-3.9

            darcy Joe Darcy
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: