--- old/src/java.base/share/classes/java/net/SocksSocketImpl.java 2019-04-18 10:58:24.000000000 +0100 +++ new/src/java.base/share/classes/java/net/SocksSocketImpl.java 2019-04-18 10:58:23.000000000 +0100 @@ -256,17 +256,6 @@ connect(new InetSocketAddress(address, port), 0); } - @Override - void setSocket(Socket soc) { - delegate.socket = soc; - super.setSocket(soc); - } - - @Override - void setServerSocket(ServerSocket soc) { - throw new InternalError("should not get here"); - } - /** * Connects the Socks Socket to the specified endpoint. It will first * connect to the SOCKS proxy and negotiate the access. If the proxy