RFR: 8370387: Remove handling of InterruptedIOException from java.io classes

Alan Bateman alanb at openjdk.org
Thu Oct 23 10:25:03 UTC 2025


On Thu, 23 Oct 2025 10:06:49 GMT, Viktor Klang <vklang at openjdk.org> wrote:

> It seems really unfortunate that `java.net.SocketTimeoutException` extends `InterruptedIOException` as SocketTimeoutException looks to have a larger footprint in signatures / specifications, and usages could (but unlikely) catch InterruptedIOException.

That's right, a forced move because prior to JDK 1.4 Socket.setTimeout and DatagramSocket.setTimeout specified InterruptedIOException be thrown when the timeout expires while waiting to read/receive.

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

PR Comment: https://git.openjdk.org/jdk/pull/27941#issuecomment-3436179643


More information about the core-libs-dev mailing list