--- old/src/java.base/share/classes/java/net/SocketImpl.java 2018-05-03 16:52:23.149492854 -0700 +++ new/src/java.base/share/classes/java/net/SocketImpl.java 2018-05-03 16:52:22.962492866 -0700 @@ -228,6 +228,15 @@ } /** + * Sets the value of this socket's {@code fd} field. + * + * @param fd the value of the fd + */ + protected void setFileDescriptor(FileDescriptor fd) { + this.fd = fd; + } + + /** * Returns the value of this socket's {@code address} field. * * @return the value of this socket's {@code address} field. @@ -238,6 +247,15 @@ } /** + * Sets the value of this socket's {@code address} field. + * + * @param address the value of the address + */ + protected void setAddress(InetAddress address) { + this.address = address; + } + + /** * Returns the value of this socket's {@code port} field. * * @return the value of this socket's {@code port} field.