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

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

XMLWordPrintable

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

      this code fails even if preview features are not enabled:

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

            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: