JDK-8230405 : Remove sun.nio.cs.map system property
  • Type: CSR
  • Component: core-libs
  • Sub-Component: java.nio.charsets
  • Priority: P2
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 14
  • Submitted: 2019-08-30
  • Updated: 2019-09-09
  • Resolved: 2019-09-09
Related Reports
CSR :  
Description
Summary
-------

Remove the undocumented `sun.nio.cs.map` system property that overrides the default charset name/alias mapping.

Problem
-------

The system property was provided for applications that would break with the fix to JDK-4712786. It was meant to be used for the time being while those applications migrate the definition of `Shift_JIS` from Windows code page 932 encoding to IANA defined `Shift_JIS`. The behavior has been partially broken since JDK 9 and should be removed rather than fixed.

Solution
--------

Remove the system property from runtime.

Specification
-------------

N/A since the system property was never documented.
Comments
I see a release note is already planned; moving to Approved.
09-09-2019

JDK-4556882 and JDK-4712786 have the history on this system property. The original intention was that it help with migration for customers that relied on Shift_JIS mapping to MS932. The system property was never documented and should have been removed many releases ago. It is possible that the system property has not worked on Japanese Windows systems since JDK 9 but this needs to be confirmed (there is at least one report of a custom trying to use the property on JDK 11).
08-09-2019