RFR: 4619075: (ch) newChannel() should return Gathering/ScatteringByteChannel [v3]

Alan Bateman alanb at openjdk.java.net
Wed Oct 20 17:57:06 UTC 2021


On Wed, 20 Oct 2021 16:35:18 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Read-only check is fixed. Not sure what to do about IOEs after bytes have been read.

It probably should return the bytes read and hope the I/O exception will be thrown when called again. I guess the question is whether this complexity is worth it. Maybe we need to think more about whether we really need this API.

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

PR: https://git.openjdk.java.net/jdk/pull/5922


More information about the nio-dev mailing list