RFR: 8297271: AccessFlag.maskToAccessFlags should be specific to class file version [v7]

Chen Liang liach at openjdk.org
Wed Apr 30 22:12:20 UTC 2025


> Take the class file version to reject flags not yet defined, redefined, or obsoleted. This is useful for clients like javap to report the correct undefined flags for different class file versions.
> 
> A preparatory patch for javap to pass around the ClassFileFormatVersion to parse flags is available at #24955.

Chen Liang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 31 commits:

 - Merge branch 'master' of https://github.com/openjdk/jdk into feature/af-cffv-parse
 - review: improve comments about implicit null checks
 - Merge branch 'fix/javap-cffv-access-flags' into feature/af-cffv-parse
 - Adapt the location APIs
 - Merge branch 'master' of https://github.com/openjdk/jdk into fix/javap-cffv-access-flags
 - 8355956: Prepare javap for class file format aware access flag parsing
 - Merge branch 'feature/af-location-accessors' into feature/af-cffv-parse
 - Explicit imports
 - Wording updates
 - Merge branch 'feature/af-location-accessors' into feature/af-cffv-parse
 - ... and 21 more: https://git.openjdk.org/jdk/compare/e36756b2...b1cf4ebb

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

Changes: https://git.openjdk.org/jdk/pull/24760/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24760&range=06
  Stats: 159 lines in 10 files changed: 99 ins; 23 del; 37 mod
  Patch: https://git.openjdk.org/jdk/pull/24760.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24760/head:pull/24760

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


More information about the core-libs-dev mailing list