--- a/jdk/src/java.base/share/classes/java/nio/charset/Charset.java Tue May 03 11:45:56 2016 +0100
+++ b/jdk/src/java.base/share/classes/java/nio/charset/Charset.java Tue May 03 15:50:54 2016 +0200
@@ -283,8 +283,8 @@
if (level == null) {
if (!VM.isBooted())
return false;
- bugLevel = level =
- GetPropertyAction.getProperty("sun.nio.cs.bugLevel", "");
+ bugLevel = level = GetPropertyAction
+ .privilegedGetProperty("sun.nio.cs.bugLevel", "");
}
return level.equals(bl);
}
@@ -609,7 +609,8 @@
public static Charset defaultCharset() {
if (defaultCharset == null) {
synchronized (Charset.class) {
- String csn = GetPropertyAction.getProperty("file.encoding");
+ String csn = GetPropertyAction
+ .privilegedGetProperty("file.encoding");
Charset cs = lookup(csn);
if (cs != null)
defaultCharset = cs;