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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 15
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b14

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: