--- a/src/java.base/share/classes/java/net/HttpConnectSocketImpl.java Sat Mar 02 11:44:38 2019 +0000
+++ b/src/java.base/share/classes/java/net/HttpConnectSocketImpl.java Mon Mar 04 08:13:31 2019 +0000
@@ -134,7 +134,7 @@
// update the Sockets impl to the impl from the http Socket
SocketImpl si = httpSocket.impl;
- ((SocketImpl) this).getSocket().setImpl(si);
+ getSocket().setImpl(si);
// best effort is made to try and reset options previously set
Set<Map.Entry<Integer,Object>> options = optionsMap.entrySet();