RFR: 8275840: Add test to java/nio/channels/Channels/TransferTo.java to test transfer sizes > 2GB [v4]

Sean Coffey coffeys at openjdk.java.net
Thu Nov 11 17:34:40 UTC 2021


On Mon, 1 Nov 2021 18:37:39 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 one additional commit since the last revision:
> 
>   Indentation

{code}
Path sourceFile = Files.createTempFile(null, null);
Path targetFile = Files.createTempFile(null, null);
{code}

Please also consider putting an identifier on your temp files so that we have a clue to who's creating them (if deletion fails)

-------------

PR: https://git.openjdk.java.net/jdk/pull/6093


More information about the nio-dev mailing list