RFR: JDK-8234729: Javac should eagerly change code generation for method references to avert IllegalAccessError in future.

Srikanth srikanth.adayapalam at oracle.com
Tue Nov 26 06:09:20 UTC 2019

On 25/11/19 6:23 PM, Maurizio Cimadamore wrote:
> Hi Srikanth,
> the patch looks good, and I see no reasons as to why we shouldn't move 
> forward with it. The real issue will be, of course, upgrading the 
> runtime support to use hidden classes (instead of Unsafe.dAC) - at 
> which point we might start see issues for code that has not been 
> recompiled with your patch; but given that (a) the condition seems 
> rare (as your number show) and (b) the workaround is easy 
> (recompile!), we should probably not worry too much about this.

Thanks Maurizio!

Fix and tests pushed here: 


More information about the compiler-dev mailing list