jdk/src/java.base/share/classes/java/net/AbstractPlainDatagramSocketImpl.java
changeset 37781 71ed5645f17c
parent 37593 824750ada3d6
child 38477 f462865d453d
equal deleted inserted replaced
37780:06f3783b338f 37781:71ed5645f17c
    50     boolean connected = false;
    50     boolean connected = false;
    51     private int trafficClass = 0;
    51     private int trafficClass = 0;
    52     protected InetAddress connectedAddress = null;
    52     protected InetAddress connectedAddress = null;
    53     private int connectedPort = -1;
    53     private int connectedPort = -1;
    54 
    54 
    55     private static final String os = GetPropertyAction.getProperty("os.name");
    55     private static final String os =
       
    56             GetPropertyAction.privilegedGetProperty("os.name");
    56 
    57 
    57     /**
    58     /**
    58      * flag set if the native connect() call not to be used
    59      * flag set if the native connect() call not to be used
    59      */
    60      */
    60     private static final boolean connectDisabled = os.contains("OS X");
    61     private static final boolean connectDisabled = os.contains("OS X");