JDK 9 RFR of 8160220: (fs) Tests in jdk/test/java/nio/file/WatchService leave directory trees behind

Brian Burkhalter brian.burkhalter at oracle.com
Tue Jul 12 20:36:38 UTC 2016


On Jul 12, 2016, at 12:41 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:

> On 12/07/2016 18:51, Brian Burkhalter wrote:
>> 
>> It does not sound as if it is the best idea to rely on deleteOnExit().
>> 
> It was okay in the past when the test execution was othervm. Switching it to TestUtils.removeAll will make it consistent with the other tests in this area.

Here’s an updated version which uses FileUtils.deleteFileTreeWithRetry() and does not use deleteOnExit():

http://cr.openjdk.java.net/~bpb/8160220/webrev.01/

Thanks,

Brian


More information about the nio-dev mailing list