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

Scope is wrong for ClassTree representing record

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 15
    • 14.0.1, 15
    • tools
    • b25

      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

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

              Created:
              Updated:
              Resolved: