-
Type:
CSR
-
Resolution: Approved
-
Priority:
P4
-
Component/s: core-libs
-
None
-
behavioral
-
minimal
-
-
Class file construct
-
Implementation
This is retroactive CSR, the change is already in JDK 21 builds.
Summary
Tighten up the parsing of module-info.class files to reject cases where the Module attribute has a requires table containing an entry for java.base with the ACC_SYNTHETIC flag set.
Problem
When parsing a module-info.class in a module on the module path, or reading a module-info.class with the java.lang.module.ModuleDescriptor.read API, the parsing doesn't currently reject the class file when the Module attribute has a requires entry for java.base with the ACC_SYNTHETIC flag set.
Solution
Align the implementation with JVMS 4.7.25 so that a requires entry for java.base with the ACC_SYNTHETIC flag set is rejected.
Specification
No specification changes, this is an implementation-only change
No release note is currently planned for this change.
- csr of
-
JDK-8298875 A module requiring "java.base" with flags ACC_SYNTHETIC should be rejected
-
- Resolved
-