src/java.base/share/classes/sun/nio/ch/Net.java
branchrsocket-branch
changeset 57115 512e7cc6ccce
parent 53445 c96f9aa1f3d8
--- a/src/java.base/share/classes/sun/nio/ch/Net.java	Fri Jan 25 11:15:00 2019 +0100
+++ b/src/java.base/share/classes/sun/nio/ch/Net.java	Sat Jan 26 14:02:35 2019 +0000
@@ -79,7 +79,7 @@
     /**
      * Tells whether dual-IPv4/IPv6 sockets should be used.
      */
-    static boolean isIPv6Available() {
+    public static boolean isIPv6Available() {
         if (!checkedIPv6) {
             isIPv6Available = isIPv6Available0();
             checkedIPv6 = true;
@@ -150,7 +150,7 @@
         return (InetSocketAddress)sa;
     }
 
-    static void translateToSocketException(Exception x)
+    public static void translateToSocketException(Exception x)
         throws SocketException
     {
         if (x instanceof SocketException)
@@ -180,7 +180,7 @@
             throw new Error("Untranslated exception", nx);
     }
 
-    static void translateException(Exception x,
+    public static void translateException(Exception x,
                                    boolean unknownHostForUnresolved)
         throws IOException
     {
@@ -196,7 +196,7 @@
         translateToSocketException(x);
     }
 
-    static void translateException(Exception x)
+    public static void translateException(Exception x)
         throws IOException
     {
         translateException(x, false);
@@ -205,7 +205,7 @@
     /**
      * Returns the local address after performing a SecurityManager#checkConnect.
      */
-    static InetSocketAddress getRevealedLocalAddress(InetSocketAddress addr) {
+    public static InetSocketAddress getRevealedLocalAddress(InetSocketAddress addr) {
         SecurityManager sm = System.getSecurityManager();
         if (addr == null || sm == null)
             return addr;
@@ -220,7 +220,7 @@
         return addr;
     }
 
-    static String getRevealedLocalAddressAsString(InetSocketAddress addr) {
+    public static String getRevealedLocalAddressAsString(InetSocketAddress addr) {
         return System.getSecurityManager() == null ? addr.toString() :
                 getLoopbackAddress(addr.getPort()).toString();
     }