RFR: 8325382: (fc) FileChannel.transferTo throws IOException when position equals size [v2]
Alan Bateman
alanb at openjdk.org
Mon Feb 12 20:50:53 UTC 2024
On Mon, 12 Feb 2024 20:03:06 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> In `FileChannelImpl.transferTo`, do not clamp the number of bytes to transfer to the number remaining in the source `FileChannel` unless the size of the source is positive. When clamping, do not use the strict inequality `remaining > 0`, but rather allow clamping to zero.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>
> 8325382: Change sub-test name and check return
Marked as reviewed by alanb (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/17796#pullrequestreview-1876248899
More information about the nio-dev
mailing list