RFR: 8336815: Several methods in java.net.Socket and ServerSocket do not specify behavior when already bound, connected or closed [v5]
Jaikiran Pai
jpai at openjdk.org
Wed Jul 24 11:37:13 UTC 2024
On Wed, 24 Jul 2024 11:10:10 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision:
>>
>> add Joe's suggestion to the close() methods
>
> src/java.base/share/classes/java/net/Socket.java line 1737:
>
>> 1735: * Once a socket has been closed, it is not available for further networking
>> 1736: * use (i.e. can't be reconnected or rebound) and several of the methods defined
>> 1737: * by this class will throw an exception when invoked on the closed socket. A new
>
> I think "if invoked" might be better than "when invoked" here
Fixed and updated the PR to address both these places.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20268#discussion_r1689612978
More information about the net-dev
mailing list