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

Chen Liang liach at openjdk.org
Fri Apr 18 20:38:14 UTC 2025


Take the class file version to reject flags not yet defined, redefined, or obsoleted. The non-cffv version can return the preview flags when the current runtime is in preview.

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

Depends on: https://git.openjdk.org/jdk/pull/23095

Commit messages:
 - 8297271: AccessFlag.maskToAccessFlags should be specific to class file version

Changes: https://git.openjdk.org/jdk/pull/24760/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24760&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8297271
  Stats: 157 lines in 9 files changed: 93 ins; 31 del; 33 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 security-dev mailing list