8213210: Change ServerSocket(SocketImpl impl) constructor to protected access
Chris Hegarty
chris.hegarty at oracle.com
Wed Oct 31 20:53:02 UTC 2018
> On 31 Oct 2018, at 19:26, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
>
> ...
>
> --- a/src/java.base/share/classes/java/net/ServerSocket.java
> +++ b/src/java.base/share/classes/java/net/ServerSocket.java
> @@ -76,10 +76,16 @@
> private boolean oldImpl = false;
>
> /**
> - * Package-private constructor to create a ServerSocket associated with
> - * the given SocketImpl.
> + * Creates a server socket with a user-specified {@code SocketImpl}.
> + *
> + * @param impl an instance of a SocketImpl the subclass
> + * wishes to use on the ServerSocket.
> + *
> + * @throws NullPointerException if impl is {@code null}
> + *
> + * @since 12
> */
> - ServerSocket(SocketImpl impl) {
> + protected ServerSocket(SocketImpl impl) {
> this.impl = impl;
> impl.setServerSocket(this);
> }
I think this is good. I added myself as reviewer on the CSR too.
-Chris.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20181031/a1b1cdc0/attachment-0001.html>
More information about the net-dev
mailing list