[code-reflection] RFR: InnerClassLambdaMetafactory fix of hidden classes handling
Chen Liang
liach at openjdk.org
Wed Apr 17 09:38:04 UTC 2024
On Wed, 17 Apr 2024 08:10:04 GMT, Adam Sotona <asotona at openjdk.org> wrote:
> FYI: I'm going to fill a bug and propose similar fix to JDK main
If a hidden class reuses the bytecode for say:
`Supplier<String> supplier = this::toString;`
This has to fail because `this` cannot be captured by a lambda method because the receiver type is hidden. So lambdas for hidden classes can only support invokestatic.
-------------
PR Comment: https://git.openjdk.org/babylon/pull/52#issuecomment-2060830385
More information about the babylon-dev
mailing list