On Thu, 8 Oct 2026 08:59:52 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). > > Michael McMahon has updated the pull request incrementally with one > additional commit since the last revision: > > net-properties.html update src/java.base/share/classes/java/nio/channels/ServerSocketChannel.java line 133: > 131: * <p> The new channel's socket is initially unbound; it must be > bound to a > 132: * specific address via one of this class's {@link > #bind(java.net.SocketAddress, int) > 133: * bind} methods, before connections can be accepted. </p> This just changes the link from the 1-arg bind to the 2-arg bind methods, is this necessary? I wonder if it would be clear to just say using the 1-arg bind or the 2-arg bind method so that it links to both. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/33249#discussion_r4221598177
