--- old/src/java.base/share/classes/java/net/ServerSocket.java 2018-06-04 11:02:17.384275154 -0700 +++ new/src/java.base/share/classes/java/net/ServerSocket.java 2018-06-04 11:02:17.124275149 -0700 @@ -76,10 +76,11 @@ private boolean oldImpl = false; /** - * Package-private constructor to create a ServerSocket associated with - * the given SocketImpl. + * Creates a server socket with a user-specified SocketImpl. + * + * @param impl the user-specified SocketImpl */ - ServerSocket(SocketImpl impl) { + protected ServerSocket(SocketImpl impl) { this.impl = impl; impl.setServerSocket(this); }