RFR: 8275840: Add test to java/nio/channels/Channels/TransferTo.java to test transfer sizes > 2GB [v2]
Markus KARG
duke at openjdk.java.net
Sun Oct 31 17:43:45 UTC 2021
On Tue, 26 Oct 2021 06:59:35 GMT, Markus KARG <duke at openjdk.java.net> wrote:
>> Testing `FileChannel.transferTo(FileChannel)` with more than 2 GB of data is covering the case that *multiple* iterations of `FileChannel.transferTo(FileChannel)` are actually performed by the test.
>>
>> This change was requested Alan Bateman @AlanBateman.
>
> Markus KARG has updated the pull request incrementally with two additional commits since the last revision:
>
> - Also it would be better to use constants.
> - It would probably be better to use a try-with-resources statement here to cleanly close the streams.
@LanceAndersen Thank you for your improvement proposals, which both are fixed in https://github.com/openjdk/jdk/pull/6093/commits/126e4877361ac7e3ab82101fee78d7d50c5733ac.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6093
More information about the nio-dev
mailing list