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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 15
    • None
    • 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

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

              Created:
              Updated:
              Resolved: