RFR: 8336815: Socket.bind/connect and ServerSocket.bind/accept do not specify behavior when already bound, connected or closed [v2]

Jaikiran Pai jpai at openjdk.org
Sat Jul 20 10:08:09 UTC 2024


On Sat, 20 Jul 2024 08:24:33 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> src/java.base/share/classes/java/net/ServerSocket.java line 521:
>> 
>>> 519:      *
>>> 520:      * @throws     IOException  if an I/O error occurs when waiting for a
>>> 521:      *               connection, or if the socket isn't bound or is already closed.
>> 
>> Can you check the existing text as I think it uses "not bound" rather than "isn't bound".
>
> Also "already closed" might be a bit inconsistent with the existing API docs too, can you check as I think we use  "is closed" in most places.

Hello Alan, I've now updated the PR to address this text.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20268#discussion_r1685356152


More information about the net-dev mailing list