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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 14, 15
    • Fix Version/s: 15
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      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

              • 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: