-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
None
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.
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.
- csr for
-
JDK-8331414 java.lang.classfile.Attributes class performs a lot of static initializations
-
- Closed
-