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

Simplify initialization of platform encoding

    Details

    • Subcomponent:
    • Resolved In Build:
      b04
    • Verification:
      Not verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: