RFR: 8356154: Respecify java.net.Socket constructors that allow creating UDP sockets to throw IllegalArgumentException [v7]

Jaikiran Pai jpai at openjdk.org
Tue May 6 13:28:18 UTC 2025


On Tue, 6 May 2025 13:08:46 GMT, Michael McMahon <michaelm at openjdk.org> wrote:

>> Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   remove unintentional file additions
>
> src/java.base/share/classes/java/net/Socket.java line 455:
> 
>> 453:         if (!stream) {
>> 454:             throw new IllegalArgumentException(
>> 455:                     "Socket constructor does not support creation of datagram socket");
> 
> Suggestion:
> 
>                     "Socket constructor does not support creation of datagram sockets");

Thank you Michael, I updated the PR with all 3 suggestions. The CSR text too has been updated with this minor update.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25031#discussion_r2075475704


More information about the nio-dev mailing list