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

Scope is wrong for ClassTree representing record

    XMLWordPrintable

    Details

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

      Description

      This is an issue observed in new RECORD feature that's added

      e.g.
      record Rec<X, Y>( | ) { }

      When trying to retrieve the scope inside the record at position marked by '|'.
      Expecting X,Y to be the part of the scope, but the scope doesn't return those elements.

      Maybe there is a change needed in:
      jdk.compiler/share/classes/com/sun/tools/javac/api/JavacTrees.java

        Attachments

          Activity

            People

            Assignee:
            jlahoda Jan Lahoda
            Reporter:
            asinha Arunava Sinha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: