--- a/jdk/src/java.base/share/classes/sun/net/sdp/SdpSupport.java Tue May 03 11:45:56 2016 +0100
+++ b/jdk/src/java.base/share/classes/sun/net/sdp/SdpSupport.java Tue May 03 15:50:54 2016 +0200
@@ -40,7 +40,7 @@
*/
public final class SdpSupport {
- private static final String os = GetPropertyAction.getProperty("os.name");
+ private static final String os = GetPropertyAction.privilegedGetProperty("os.name");
private static final boolean isSupported = (os.equals("SunOS") || (os.equals("Linux")));
private static final JavaIOFileDescriptorAccess fdAccess =
SharedSecrets.getJavaIOFileDescriptorAccess();