The class generated for lambda proxies is now defined as a hidden class. This means that the counter, which was used to ensure a unique class name and avoid clashes, is now redundant. In addition to performing redundant work, this also impacts build reproducibility for native image generators which might already have a strategy to cope with hidden classes but cannot cope with indeterminate definition order for lambda proxy classes.
This solves JDK-8292914 by making lambda proxy names always be stable without any configuration needed. This would also replace #10024. ------------- Commit messages: - 8292914: Drop the counter from lambda class names Changes: https://git.openjdk.org/jdk/pull/12579/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12579&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8292914 Stats: 4 lines in 1 file changed: 0 ins; 3 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/12579.diff Fetch: git fetch https://git.openjdk.org/jdk pull/12579/head:pull/12579 PR: https://git.openjdk.org/jdk/pull/12579