jdk/src/java.base/unix/classes/sun/nio/ch/DefaultAsynchronousChannelProvider.java
changeset 37781 71ed5645f17c
parent 37593 824750ada3d6
child 37782 ad8fe7507ecc
--- a/jdk/src/java.base/unix/classes/sun/nio/ch/DefaultAsynchronousChannelProvider.java	Tue May 03 11:45:56 2016 +0100
+++ b/jdk/src/java.base/unix/classes/sun/nio/ch/DefaultAsynchronousChannelProvider.java	Tue May 03 15:50:54 2016 +0200
@@ -59,7 +59,7 @@
      * Returns the default AsynchronousChannelProvider.
      */
     public static AsynchronousChannelProvider create() {
-        String osname = GetPropertyAction.getProperty("os.name");
+        String osname = GetPropertyAction.privilegedGetProperty("os.name");
         if (osname.equals("SunOS"))
             return createProvider("sun.nio.ch.SolarisAsynchronousChannelProvider");
         if (osname.equals("Linux"))