Please review the fix for a major transformation bug within the ClassFile API, where certain kinds of buffered elements produced by one transform is not sent to the next, and the "chained" (`andThen` transformation chains) builders returning the wrong builder for call chains.
This is intended to be backported to JDK 23, as this has significant impact on user experience with ClassFile API transformations. The backport won't be clean as we already renamed `ClassFile.transform` to `transformClass`, which will be reverted in the backport. ------------- Commit messages: - JDK-8335935: Chained builders not sending transformed models to next transforms Changes: https://git.openjdk.org/jdk/pull/20100/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20100&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8335935 Stats: 293 lines in 10 files changed: 169 ins; 97 del; 27 mod Patch: https://git.openjdk.org/jdk/pull/20100.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/20100/head:pull/20100 PR: https://git.openjdk.org/jdk/pull/20100