RFR 8190500: (ch) ReadableByteChannelImpl::read and WritableByteChannelImpl::write might not throw ClosedChannelException as specified

Brian Burkhalter brian.burkhalter at oracle.com
Thu Nov 2 00:55:02 UTC 2017


https://bugs.openjdk.java.net/browse/JDK-8190500
http://cr.openjdk.java.net/~bpb/8190500/webrev.00/

Closing the channel returned by Channels::newChannel can result in a subsequent read/write's throwing an IOException instead of the expected ClosedChannelException in for a non-FileIn/OutputStream parameter.

Thanks,

Brian


More information about the nio-dev mailing list