--- a/jdk/src/java.base/share/classes/sun/nio/cs/StandardCharsets.java.template Tue May 03 11:45:56 2016 +0100
+++ b/jdk/src/java.base/share/classes/sun/nio/cs/StandardCharsets.java.template Tue May 03 15:50:54 2016 +0200
@@ -164,7 +164,7 @@
return;
initialized = true;
- String map = getProperty("sun.nio.cs.map");
+ String map = GetPropertyAction.privilegedGetProperty("sun.nio.cs.map");
if (map != null) {
String[] maps = map.split(",");
for (int i = 0; i < maps.length; i++) {
@@ -199,9 +199,4 @@
}
}
- private static String getProperty(String key) {
- return GetPropertyAction.getProperty(key);
- }
-
-
}