On Wed, 28 Jan 2026 08:20:32 GMT, Daniel Jeliński <[email protected]> wrote:

>> Right. I'll change that; nothing in the `InputStream` spec states that the 
>> stream must be left in an unusable state after an exception, so I'll just 
>> stop setting the error here.
>
> Changed; the InterruptedIOException does not set `error` anymore, so if the 
> caller of `read()` chooses to clear the interrupted status, it's possible to 
> keep reading from the stream after the exception.

Maybe we should set `close = true` when we catch InterruptedException.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29448#discussion_r2736121269

Reply via email to