On Wed, 7 Oct 2026 11:41:37 GMT, Michael McMahon <[email protected]> wrote:

> Hi,
> 
> This is a small change to java.net.UnixDomainSocketAddress which specifies 
> that an address with an empty path can be used to bind a ServerSocketChannel 
> to a system chosen address. This is equivalent to InetSocketAddress with a 
> zero valued port field, which requests the system to choose the port number. 
> The behavior can currently be obtained by passing a null reference to 
> ServerSocketChannel.bind() but certain use cases need a typed value to 
> indicate the same information.
> 
> There are some minor related doc changes to ServerSocketChannel.
> 
> Thanks,
> Michael.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

src/java.base/share/classes/java/net/doc-files/net-properties.html line 316:

> 314: <p>
> 315: Calling {@link 
> java.nio.channels.ServerSocketChannel#bind(SocketAddress,int) 
> ServerSocketChannel.bind}
> 316: with a {@code null} or {@linkplain UnixDomainSocketAddress##unnamed 
> unnamed} address parameter for Unix

You may nee the fully qualified name here, since this is an html file and 
UnixDomainSocketAddress is not imported. Did you check how it was rendered?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/33249#discussion_r4208779903

Reply via email to