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

Chen Liang liach at openjdk.org
Wed Apr 30 18:17:27 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 27 commits:

 - review: improve comments about implicit null checks
 - Merge branch 'fix/javap-cffv-access-flags' into feature/af-cffv-parse
 - 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
 - Update specs for other existing APIs
 - Wording updates, thanks Roger
 - Missing since
 - Fix javap causing strictfp tests to fail
 - ... and 17 more: https://git.openjdk.org/jdk/compare/b3af1964...10be287f

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

Changes: https://git.openjdk.org/jdk/pull/24760/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24760&range=05
  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