8164993: (ch) ReadableByteChannel should note a possible ReadOnlyBufferException
Alan Bateman
Alan.Bateman at oracle.com
Tue Nov 19 12:03:16 UTC 2019
On 19/11/2019 00:38, Brian Burkhalter wrote:
> With respect to [1], if for the destination buffer dst.isReadOnly() is
> true, then in fact an IllegalArgumentException is thrown. This should
> probably be documented [2].
AsynchronousByteChannel has existing wording for this case that might be
useful to keep the javadoc consistent. What would you think doing
ScatteringByteChannel at the same time?
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20191119/ef0b4db4/attachment.html>
More information about the nio-dev
mailing list