RFR: JDK-8245786: Scope is wrong for ClassTree representing record

Jan Lahoda jan.lahoda at oracle.com
Wed May 27 14:40:44 UTC 2020


Hi,

Using Trees.getScope of a TreePath that represents a record does not 
return a Scope for the record. The reason is a missing case in 
JavacTrees.getAttrContext. The proposed fix is to simply list RECORD 
among other ClassTree kinds.

Webrev: http://cr.openjdk.java.net/~jlahoda/8245786/webrev.00/
JBS: https://bugs.openjdk.java.net/browse/JDK-8245786

How does this look?

Thanks,
     Jan


More information about the compiler-dev mailing list