JDK-8221877 : Remove support for "sun.security.policy.utf8" system property
  • Type: CSR
  • Component: security-libs
  • Sub-Component: java.security
  • Priority: P3
  • Status: Closed
  • Resolution: Withdrawn
  • Fix Versions: tbd
  • Submitted: 2019-04-02
  • Updated: 2020-11-30
  • Resolved: 2020-11-30
Related Reports
CSR :  
Description
Summary
-------

Remove support for the non-standard "sun.security.policy.utf8" system property.

Problem
-------

This property was introduced in JDK 1.4.2 to preserve compatibility with policy files that were not encoded in UTF-8. See https://www.oracle.com/technetwork/java/javase/compatibility-142878.html for more details. 

Since JDK 1.4.0, all policy files are required to be encoded in UTF-8. This compatibility feature is not necessary anymore. It should be very low risk to remove support for this property.

Solution
--------

Remove support for the property. Require that all policy files are encoded in UTF-8.

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

TBD.