RFR: 8330467: NoClassDefFoundError when lambda is in a hidden class [v4]
Adam Sotona
asotona at openjdk.org
Thu Apr 18 05:54:17 UTC 2024
> 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
Adam Sotona has updated the pull request incrementally with one additional commit since the last revision:
Update src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java
Co-authored-by: Mandy Chung <mandy.chung at oracle.com>
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/18810/files
- new: https://git.openjdk.org/jdk/pull/18810/files/e8eb1752..091ee2af
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=18810&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=18810&range=02-03
Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod
Patch: https://git.openjdk.org/jdk/pull/18810.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/18810/head:pull/18810
PR: https://git.openjdk.org/jdk/pull/18810
More information about the core-libs-dev
mailing list