--- a/src/java.base/share/classes/java/net/SocksSocketImpl.java Mon Apr 29 17:54:15 2019 -0700
+++ b/src/java.base/share/classes/java/net/SocksSocketImpl.java Thu May 02 17:29:10 2019 +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