Additional info for report form bug 9075022: local (sub)classes and lambdas

Arnold Alejo Nunag arnoldnunag12 at gmail.com
Tue Mar 28 08:20:52 UTC 2023


Hello,

The bug report I submitted earlier was assigned a JDK bug number: 
JDK-8305007 (https://bugs.openjdk.org/browse/JDK-8305007).

Additionally, a bit of debugging and testing by my friend shows a 
possible solution: with regards to the commit I mentioned in my previous 
email 
(https://github.com/openjdk/jdk12/commit/1ed6b88a9965efb2992f158bdb96b86d38cb9a45), 
modifying the code such that it checks the `proxies` map first and then 
falls back to the `lambdaTranslationMap` if the proxies map doesn't 
yield a value and the lambdaTranslationMap is available.

It isn't certain if it's a full fix for the issue, but it does fix the 
bug and the test case in the commit still successfully passes. Hope this 
can be of use.

Regards,
Arnold (@sciwhiz12)



More information about the compiler-dev mailing list