RFR: JDK-8247790: javac shouldn't allow type variable references from local static declarations
Vicente Romero
vicente.romero at oracle.com
Mon Jun 22 22:29:33 UTC 2020
Hi,
Please review the fix for [1] at [2]. The issue here is that local
interfaces, enums and records shouldn't be allow to refer to type
variables defined in an enclosing context. The compiler was checking for
this if the type variables were defined by the enclosing class but
references to type variables defined by the enclosing method were
allowed. This patch is covering this gap,
Thanks,
Vicente
[1] http://cr.openjdk.java.net/~vromero/8247790/webrev.00/
[2] https://bugs.openjdk.java.net/browse/JDK-8247790
More information about the compiler-dev
mailing list