On Fri, 9 Oct 2026 11:47:46 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:
> 
>   Update test/jdk/java/nio/channels/unixdomain/Bind.java
>   
>   Co-authored-by: Volkan Yazıcı <[email protected]>

test/jdk/java/nio/channels/unixdomain/Bind.java line 212:

> 210:                 server.accept();
> 211:             }
> 212:         );

Can we add a checkException where we pass an InetSocketAddress to 
server.bind(SocketAddress) and
server.bind(SocketAddress, int) and expect an UnsupportedAddressTypeException 
exception?

I believe this is missing here.

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

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

Reply via email to