The use of lambda's in the initialization of AccessFlag runs afoul of CDS in some cases due to occurring early in the platform's initialization. Instead of lambdas, using anonymous classes gets around the issue.
Clean tier1 and tier 2 Mach 5 run with these changes. ------------- Commit messages: - JDK-8292498: java/lang/invoke/lambda/LogGeneratedClassesTest.java failed with "AssertionError: only show error once expected [1] but found [0]" Changes: https://git.openjdk.org/jdk/pull/9911/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9911&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8292498 Stats: 140 lines in 2 files changed: 66 ins; 1 del; 73 mod Patch: https://git.openjdk.org/jdk/pull/9911.diff Fetch: git fetch https://git.openjdk.org/jdk pull/9911/head:pull/9911 PR: https://git.openjdk.org/jdk/pull/9911