RFR: 8336815: Socket.bind/connect and ServerSocket.bind/accept do not specify behavior when already bound, connected or closed
Jaikiran Pai
jpai at openjdk.org
Sat Jul 20 07:58:01 UTC 2024
Can I please get a review of this change which updates the specification of a few methods in `java.net.Socket` and `java.net.ServerSocket` classes to specify the `IOException` that the implementation currently already throws?
This is merely a doc update and doesn't change the implementation.
Given that these exceptions can now be asserted, a new jtreg test has been introduced to verify the exceptions thrown from these APIs. The test passes. tier testing is currently in progress. I'll open a CSR shortly.
-------------
Commit messages:
- 8336815: Socket.bind/connect and ServerSocket.bind/accept do not specify behavior when already bound, connected or closed
Changes: https://git.openjdk.org/jdk/pull/20268/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20268&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8336815
Stats: 147 lines in 3 files changed: 141 ins; 0 del; 6 mod
Patch: https://git.openjdk.org/jdk/pull/20268.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/20268/head:pull/20268
PR: https://git.openjdk.org/jdk/pull/20268
More information about the net-dev
mailing list