RFR: 8372047: ClassTransform.transformingMethodBodies andThen composes incorrectly [v3]

Chen Liang liach at openjdk.org
Wed Nov 19 14:18:53 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, and the actual content tranforms can only compose if they apply to the same set of method or fields. So we should restrict this "optimization" to same filters.

Chen Liang has updated the pull request incrementally with one additional commit since the last revision:

  Make it clear where the filter is shared

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/28377/files
  - new: https://git.openjdk.org/jdk/pull/28377/files/b5ac4fcf..708f02bb

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=28377&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=28377&range=01-02

  Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 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