RFR: 8372047: ClassTransform.transformingMethodBodies andThen composes incorrectly

Chen Liang liach at openjdk.org
Tue Nov 18 16:07:23 UTC 2025


ClassMethodTransform and ClassFieldTransform are computing the chaining condition incorrectly - the composed transform should run when any of the component wants to run instead of when all copmonents want to run.

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

Commit messages:
 - 8372047: ClassTransform.transformingMethodBodies andThen composes incorrectly

Changes: https://git.openjdk.org/jdk/pull/28377/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28377&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8372047
  Stats: 43 lines in 2 files changed: 32 ins; 0 del; 11 mod
  Patch: https://git.openjdk.org/jdk/pull/28377.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28377/head:pull/28377

PR: https://git.openjdk.org/jdk/pull/28377


More information about the core-libs-dev mailing list