JDK-8337220 : AccessFlags validation should respect ClassFile version
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.classfile
  • Affected Version: 24
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2024-07-25
  • Updated: 2024-11-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25
25Unresolved
Related Reports
Blocks :  
Description
Currently, `AccessFlags` validation does not respect ClassFile version; for example, we currently rejects using `AccessFlag.STRICT` on methods if we generate major version 52 (Java 8) bytecode. With the update to AccessFlags creation, we can capture the class file version from builder context to create the flags bound to the right versions.