--- a/jdk/src/java.base/share/classes/sun/nio/ch/Util.java Tue May 03 11:45:56 2016 +0100
+++ b/jdk/src/java.base/share/classes/sun/nio/ch/Util.java Tue May 03 15:50:54 2016 +0200
@@ -64,7 +64,8 @@
* for potential future-proofing.
*/
private static long getMaxCachedBufferSize() {
- String s = GetPropertyAction.getProperty("jdk.nio.maxCachedBufferSize");
+ String s = GetPropertyAction
+ .privilegedGetProperty("jdk.nio.maxCachedBufferSize");
if (s != null) {
try {
long m = Long.parseLong(s);
@@ -465,7 +466,8 @@
if (bugLevel == null) {
if (!jdk.internal.misc.VM.isBooted())
return false;
- String value = GetPropertyAction.getProperty("sun.nio.ch.bugLevel");
+ String value = GetPropertyAction
+ .privilegedGetProperty("sun.nio.ch.bugLevel");
bugLevel = (value != null) ? value : "";
}
return bugLevel.equals(bl);