[code-reflection] RFR: InnerClassLambdaMetafactory fix of hidden classes handling
Adam Sotona
asotona at openjdk.org
Wed Apr 17 12:43:32 UTC 2024
On Wed, 17 Apr 2024 09:34:51 GMT, Chen Liang <liach at openjdk.org> wrote:
> 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.
Good point, I've restricted it to static only, thanks.
-------------
PR Comment: https://git.openjdk.org/babylon/pull/52#issuecomment-2061168886
More information about the babylon-dev
mailing list