RFR: 8370387: Remove handling of InterruptedIOException from java.io classes
Viktor Klang
vklang at openjdk.org
Thu Oct 23 10:09:10 UTC 2025
On Wed, 22 Oct 2025 18:26:16 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Remove catching `InterruptedIOException` and throw `IOException` in response to `InterruptedException` instead of throwing `InterruptedIOException`.
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.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27941#issuecomment-3436119217
More information about the core-libs-dev
mailing list