Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4391

Scope is wrong for ClassTree representing record in JDK-14

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Next
    • 12.1
    • cnd - Editor
    • None

    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 nb-javac :
      jdk.compiler/share/classes/com/sun/tools/javac/api/JavacTrees.java

      Issue is also present in jdk-14 javac and  is already reported there. Fix will be available in jdk-15 release

      Attachments

        Activity

          People

            arusinha Arunava Sinha
            arusinha Arunava Sinha
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: