JDK 23 |
---|
23 masterFixed |
CSR :
|
java.lang.classfile.Attributes has a static field for each predefined AttributeMapper and an extra field PREDEFINED_ATTRIBUTES initialized with a set of the mappers. Exposing predefined mappers as static fields requires a lot of static initialization in one of the class involved in the JDK bootstrap. In this enhancement I propose to expose all the mappers in a form of static methods to allow lazy initialization.
|