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

Jaikiran Pai jpai at openjdk.org
Tue May 6 09:08:23 UTC 2025


On Tue, 6 May 2025 08:05:02 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   additional updates to apiNotes
>
> src/java.base/share/classes/java/net/Socket.java line 384:
> 
>> 382:      * stream socket. If the stream argument is {@code false}, it
>> 383:      * creates a datagram socket.
>> 384:      * <p>
> 
> One final though on the Socket changes is that maybe we should include an API note to say that the stream parameter provided a way in early JDK releases to create a Socket that used a datagram socket, this feature no longer exists.

Done

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

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


More information about the nio-dev mailing list