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

javac parser is too aggressive on ambiguous expressions using identifier: record

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 15
    • 14, 15
    • tools
    • b08

    Description

      this code fails even if preview features are not enabled:

      class X {
          record R(int i) {
              return null;
          }
      }
      class record {}

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: