On Tue, 3 Nov 2020 09:25:52 GMT, Michael McMahon <[email protected]> wrote:
>> src/java.base/share/classes/java/net/doc-files/net-properties.html line 250:
>>
>>> 248: Automatic binding of a server socket occurs when {@link
>>> 249: java.nio.channels.ServerSocketChannel#bind(SocketAddress,int)
>>> ServerSocketChannel.bind}
>>> 250: is called with a {@code null} address parameter. In this case, the
>>> system
>>
>> doesn't it also happen when it is called with a UnixDomainSocketAddress that
>> has an empty path?
>
> No, an empty path signifies an unnamed address and only client sockets
> (SocketChannels) are allowed to be unnamed.
You get a BindException if you try to bind a ServerSocketChannel to the unnamed
address. But, the exception message is "unhelpful". I would like to fix that.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1021