RFR: 8325382: (fc) FileChannel.transferTo throws IOException when position equals size [v2]
Brian Burkhalter
bpb at openjdk.org
Mon Feb 12 20:03:06 UTC 2024
> 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
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/17796/files
- new: https://git.openjdk.org/jdk/pull/17796/files/40370a4f..ecd01954
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=17796&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=17796&range=00-01
Stats: 7 lines in 1 file changed: 4 ins; 0 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/17796.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17796/head:pull/17796
PR: https://git.openjdk.org/jdk/pull/17796
More information about the nio-dev
mailing list