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

-------------

Commit messages:
 - 8330467: NoClassDefFoundError when lambda is in a hidden class

Changes: https://git.openjdk.org/jdk/pull/18810/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18810&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8330467
  Stats: 8 lines in 2 files changed: 2 ins; 0 del; 6 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

Reply via email to