JDK 9 RFR of 8160221: jdk/test/java/nio/channels/FileChannel/Transfers.java leaving files behind
Alan Bateman
Alan.Bateman at oracle.com
Tue Jul 12 19:54:00 UTC 2016
On 12/07/2016 16:01, Brian Burkhalter wrote:
> A failure was still being observed on Windows during jtreg cleanup due
> to a file which could not be deleted as a FileChannel still held it
> open. This patch
>
> http://cr.openjdk.java.net/~bpb/8160221/webrev.01/
> <http://cr.openjdk.java.net/%7Ebpb/8160221/webrev.01/>
>
> fixes that problem at line 561 (verified).
>
>
This looks okay, just wondering if you can use try-with-reosurces instead.
-Alan
More information about the nio-dev
mailing list