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

ExE Boss duke at openjdk.org
Sat Apr 19 08:56:40 UTC 2025


On Fri, 18 Apr 2025 20:33:27 GMT, Chen Liang <liach at openjdk.org> wrote:

> 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.

With this, the **Class‑File API** needs to be updated to pass the current class file format version to the calls of `AccessFlag​.maskToAccessFlags(…)`.

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

PR Comment: https://git.openjdk.org/jdk/pull/24760#issuecomment-2816617102


More information about the security-dev mailing list