Some ad-hoc lambdas and classes for functional calls to ClassFile API in early bootstrap can be replaced with a few fixed factories. This allows some methods to be used at early bootstrap with less class loading costs.
Depends on #20627, as this adds another fix to one of the fixes there on `ClassBuilder::withMethodBody(String, MethodTypeDesc, int, Consumer)`. ------------- Depends on: https://git.openjdk.org/jdk/pull/20627 Commit messages: - Sneaky import - 8338545: Functional interface implementations for common pre-boot ClassFile operations Changes: https://git.openjdk.org/jdk/pull/20629/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20629&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8338545 Stats: 139 lines in 11 files changed: 33 ins; 63 del; 43 mod Patch: https://git.openjdk.org/jdk/pull/20629.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/20629/head:pull/20629 PR: https://git.openjdk.org/jdk/pull/20629