RFR: 8305596: (fc) Two java/nio/channels tests fail after JDK-8303260 [v2]
Brian Burkhalter
bpb at openjdk.org
Wed Apr 5 15:16:18 UTC 2023
On Wed, 5 Apr 2023 14:58:03 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> test/jdk/java/nio/channels/FileChannel/Transfer.java line 101:
>>
>>> 99: throw new RuntimeException("Wrote too many bytes");
>>> 100:
>>> 101: if (sinkChannel.size() != 1010)
>>
>> I assume this should be `1000 + bytesWritten` rather than 1010.
>
> Yes.
>
> There are other places in here where it is not accounted for that transferX can return less than the count specified.
Fixed in 6c138ef19704f57a34410e039fe5e0b3f5059bf3.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13342#discussion_r1158662228
More information about the nio-dev
mailing list