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/nio/channels/ServerSocketChannel.java line 243: > 241: * This file persists after the channel is closed, and must be > removed before > 242: * another socket can bind to the same name. Binding to a {@code > null} or > 243: * <a > href="../../../java/net/UnixDomainSocketAddress.html#unnamed">unnamed</a> The modern way of linking to an anchor would be to use (IIRC): Suggestion: * {@linkplain UnixDomainSocketAddress##unnamed unnamed} ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/33249#discussion_r4208263908
