-
Bug
-
Resolution: Fixed
-
P4
-
11
-
b04
-
Not verified
The initialization of the platform encoding during System.initProperties
is unnecessarily complex and can be simplified.
Currently, the initialization occurs as a side effect the first call to JNU_NewStringPlatform and involves a upcall to get sun.jnu.encoding from the system properties.
System.initProperties determines the platform specific encoding via java_props_md.c and does an upcall to set the sun.jnu.encoding system property, taking care to do it before the first string that needs platform encoding.
It would less fragile and more efficient to initialize the platform encoding directly.
is unnecessarily complex and can be simplified.
Currently, the initialization occurs as a side effect the first call to JNU_NewStringPlatform and involves a upcall to get sun.jnu.encoding from the system properties.
System.initProperties determines the platform specific encoding via java_props_md.c and does an upcall to set the sun.jnu.encoding system property, taking care to do it before the first string that needs platform encoding.
It would less fragile and more efficient to initialize the platform encoding directly.
- relates to
-
JDK-8201246 Export native function to set platform encoding
-
- Closed
-