@@ -573,12 +573,13 @@ void setConnected() {
573573 * a {@link SocketChannel SocketChannel}.
574574 * In that case, interrupting a thread establishing a connection will
575575 * close the underlying channel and cause this method to throw
576- * {@link ClosedByInterruptException} with the interrupt status set.
576+ * {@link ClosedByInterruptException} with the thread's interrupted
577+ * status set.
577578 * <li> The socket uses the system-default socket implementation and a
578579 * {@linkplain Thread#isVirtual() virtual thread} is establishing a
579580 * connection. In that case, interrupting the virtual thread will
580581 * cause it to wakeup and close the socket. This method will then throw
581- * {@code SocketException} with the interrupt status set.
582+ * {@code SocketException} with the thread's interrupted status set.
582583 * </ol>
583584 *
584585 * @param endpoint the {@code SocketAddress}
@@ -613,12 +614,13 @@ public void connect(SocketAddress endpoint) throws IOException {
613614 * a {@link SocketChannel SocketChannel}.
614615 * In that case, interrupting a thread establishing a connection will
615616 * close the underlying channel and cause this method to throw
616- * {@link ClosedByInterruptException} with the interrupt status set.
617+ * {@link ClosedByInterruptException} with the thread's interrupted
618+ * status set.
617619 * <li> The socket uses the system-default socket implementation and a
618620 * {@linkplain Thread#isVirtual() virtual thread} is establishing a
619621 * connection. In that case, interrupting the virtual thread will
620622 * cause it to wakeup and close the socket. This method will then throw
621- * {@code SocketException} with the interrupt status set.
623+ * {@code SocketException} with the thread's interrupted status set.
622624 * </ol>
623625 *
624626 * @apiNote Establishing a TCP/IP connection is subject to connect timeout settings
@@ -886,13 +888,14 @@ public SocketChannel getChannel() {
886888 * a {@link SocketChannel SocketChannel}.
887889 * In that case, interrupting a thread reading from the input stream
888890 * will close the underlying channel and cause the read method to
889- * throw {@link ClosedByInterruptException} with the interrupt
890- * status set.
891+ * throw {@link ClosedByInterruptException} with the thread's
892+ * interrupted status set.
891893 * <li> The socket uses the system-default socket implementation and a
892894 * {@linkplain Thread#isVirtual() virtual thread} is reading from the
893895 * input stream. In that case, interrupting the virtual thread will
894896 * cause it to wakeup and close the socket. The read method will then
895- * throw {@code SocketException} with the interrupt status set.
897+ * throw {@code SocketException} with the thread's interrupted
898+ * status set.
896899 * </ol>
897900 *
898901 * <p>Under abnormal conditions the underlying connection may be
@@ -1026,13 +1029,14 @@ public void close() throws IOException {
10261029 * a {@link SocketChannel SocketChannel}.
10271030 * In that case, interrupting a thread writing to the output stream
10281031 * will close the underlying channel and cause the write method to
1029- * throw {@link ClosedByInterruptException} with the interrupt status
1030- * set.
1032+ * throw {@link ClosedByInterruptException} with the thread's
1033+ * interrupted status set.
10311034 * <li> The socket uses the system-default socket implementation and a
10321035 * {@linkplain Thread#isVirtual() virtual thread} is writing to the
10331036 * output stream. In that case, interrupting the virtual thread will
10341037 * cause it to wakeup and close the socket. The write method will then
1035- * throw {@code SocketException} with the interrupt status set.
1038+ * throw {@code SocketException} with the thread's interrupted
1039+ * status set.
10361040 * </ol>
10371041 *
10381042 * <p> Closing the returned {@link java.io.OutputStream OutputStream}
0 commit comments