diff -r 40a7e2fc9beb src/java.base/share/classes/sun/security/provider/PolicyFile.java --- a/src/java.base/share/classes/sun/security/provider/PolicyFile.java Tue Apr 02 11:37:11 2019 +0200 +++ b/src/java.base/share/classes/sun/security/provider/PolicyFile.java Fri May 17 09:35:42 2019 -0400 @@ -254,7 +254,6 @@ private boolean expandProperties = true; private boolean allowSystemProperties = true; - private boolean notUtf8 = false; private URL url; // for use with the reflection API @@ -308,8 +307,6 @@ (Security.getProperty("policy.expandProperties")); allowSystemProperties = "true".equalsIgnoreCase (Security.getProperty("policy.allowSystemProperty")); - notUtf8 = "false".equalsIgnoreCase - (System.getProperty("sun.security.policy.utf8")); return System.getProperty("sun.security.policy.numcaches"); }}); @@ -563,13 +560,8 @@ throws IOException { /* * Read in policy using UTF-8 by default. - * - * Check non-standard system property to see if the default encoding - * should be used instead. */ - return (notUtf8) - ? new InputStreamReader(is) - : new InputStreamReader(is, "UTF-8"); + return new InputStreamReader(is, "UTF-8"); } private void initStaticPolicy(final PolicyInfo newInfo) {