8164993: (ch) ReadableByteChannel should note a possible ReadOnlyBufferException
Brian Burkhalter
brian.burkhalter at oracle.com
Tue Nov 19 17:31:11 UTC 2019
> On Nov 19, 2019, at 4:03 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
>
> 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?
If there are multiple locations where this is needed then they should all be addressed. I’ll take another look.
Thanks,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20191119/02dcbbc8/attachment-0001.html>
More information about the nio-dev
mailing list