RFR: 8361495: (fc) Async close of streams connected to uninterruptible FileChannel doesn't throw AsynchronousCloseException in all cases
Alan Bateman
alanb at openjdk.org
Wed Jul 23 07:17:59 UTC 2025
On Tue, 22 Jul 2025 23:21:23 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Throw `AsynchronousCloseException` from `FileChannelImpl` methods if the channel is uninterruptible and was closed before the method (operation) could complete.
The update to FileChannelImpl looks now.
he change impacts the read methods of input streams obtained from Files.newInputStream and the write methods of output streams obtained from Files.newOutputStream. I'm wonder if we should create a new complete test for this long standing issue. Right now, the test only exercises the available method and I worry that it continues when it runs out of file desciptors.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26435#issuecomment-3106183869
More information about the nio-dev
mailing list