Integrated: 8330467: NoClassDefFoundError when lambda is in a hidden class
Adam Sotona
asotona at openjdk.org
Thu Apr 18 05:54:18 UTC 2024
On Wed, 17 Apr 2024 08:46:59 GMT, Adam Sotona <asotona at openjdk.org> wrote:
> Current implementation of `LambdaMetafactory` does not allow to use lambdas in hidden classes. Invocation throws `NoClassDefFoundError` instead.
>
> This patch includes lambda implementation in a hidden class under the special handling of `useImplMethodHandle`.
> The patch also fixes `j/l/i/defineHiddenClass/BasicTest::testLambda` to correctly cover this test case.
>
> Please review.
>
> Thanks,
> Adam
This pull request has now been integrated.
Changeset: 706b421c
Author: Adam Sotona <asotona at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/706b421ccaff2129512ee3ea15ef1d6c264cbe01
Stats: 58 lines in 3 files changed: 53 ins; 0 del; 5 mod
8330467: NoClassDefFoundError when lambda is in a hidden class
Reviewed-by: psandoz, mchung
-------------
PR: https://git.openjdk.org/jdk/pull/18810
More information about the core-libs-dev
mailing list