RFR 8224477 [13] java.net.Socket::setOption - implementation mismatch to spec
Alan Bateman
Alan.Bateman at oracle.com
Mon May 27 18:42:51 UTC 2019
On 27/05/2019 19:37, Chris Hegarty wrote:
> :
> Thanks, both issues resolved in-place.
Looks good.
> :
> ServerSocket options are mentioned here as that is the behaviour in
> the current shipping release ( to return the server related options ), not
> the client related ones, see
> http://hg.openjdk.java.net/jdk/jdk/file/jdk-12-ga/src/java.base/share/classes/java/net/SocketImpl.java#l472
>
>
Ah okay, a custom SocketImpl has no support in the SPI to know if it's
for a client or server socket. In that case, I think it looks fine (and
more reason to return the empty Set as nothing else make sense).
-Alan
More information about the net-dev
mailing list