RFR: 8305596: (fc) Two java/nio/channels tests fail after JDK-8303260
Alan Bateman
alanb at openjdk.org
Wed Apr 5 08:12:14 UTC 2023
On Tue, 4 Apr 2023 22:04:04 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Update the tests to conform to the specification change in [JDK-8303260](https://bugs.openjdk.org/browse/JDK-8303260) which allows writing to a position beyond the channel's size in `FileChannel::transferFrom`.
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.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13342#discussion_r1158171420
More information about the nio-dev
mailing list