--- old/src/java.base/share/classes/sun/nio/ch/Net.java 2018-11-30 08:32:51.405540518 -0500 +++ new/src/java.base/share/classes/sun/nio/ch/Net.java 2018-11-30 08:32:51.122540536 -0500 @@ -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(); }