Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8198697

Simplify initialization of platform encoding

XMLWordPrintable

    • 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.

            rriggs Roger Riggs
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: