incorrect error message: as of release 13, 'record' is a restricted type name

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 15
    • Affects Version/s: None
    • Component/s: tools
    • b14

      when compiling this code:

      class record {}

      javac produces the following error message:

      class record {}
            ^
        as of release 13, 'record' is a restricted type name and cannot be used for type declarations

      it should mention release 14 instead

      reported in amber-dev: http://mail.openjdk.java.net/pipermail/amber-dev/2020-February/005622.html

            Assignee:
            Vicente Arturo Romero Zaldivar
            Reporter:
            Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: