RFR: 8308899: Introduce Classfile.Context and improve Classfile.Option(s)

Adam Sotona asotona at openjdk.org
Thu Jun 1 14:49:25 UTC 2023


Classfile context object and multi-state options have been discussed at https://mail.openjdk.org/pipermail/classfile-api-dev/2023-May/000321.html
This patch implements the proposed changes in Classfile API and fixes all affected code across JDK sources and tests.

Please review.

Thanks,
Adam

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

Commit messages:
 - fixed snippets and added SnippetsTest
 - fixed javadoc
 - added Classfile context parameter to ClasRemapper::remapClass
 - records and methods implementations moved from Classfile to ClassfileImpl
 - added Classfile::buildTo override
 - implementation of Classfile::withOptions(Option... options)
 - added test for StackMapsOption.ALWAYS_GENERATE_STACK_MAPS
 - fixed tests
 - fixed options and jdk/classfile tests
 - fixed jdk/classfile tests
 - ... and 9 more: https://git.openjdk.org/jdk/compare/7d2a7ce2...bcdf0f11

Changes: https://git.openjdk.org/jdk/pull/14180/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14180&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8308899
  Stats: 1579 lines in 106 files changed: 478 ins; 195 del; 906 mod
  Patch: https://git.openjdk.org/jdk/pull/14180.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14180/head:pull/14180

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


More information about the core-libs-dev mailing list