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

Jonathan Gibbons jonathan.gibbons at oracle.com
Wed May 27 15:39:00 UTC 2020


Looks good to me.

-- Jon

On 5/27/20 7:40 AM, Jan Lahoda wrote:
> 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