diff --git a/test/lib/jdk/test/lib/util/FileUtils.java b/test/lib/jdk/test/lib/util/FileUtils.java index a5e17779061..925012810cc 100644 --- a/test/lib/jdk/test/lib/util/FileUtils.java +++ b/test/lib/jdk/test/lib/util/FileUtils.java @@ -98,6 +98,7 @@ public final class FileUtils { while (true) { try { Files.delete(path); + // Checks for absence of the file. Semantics of Files.exists() is not the same. while (!Files.notExists(path)) { times++; if (times > MAX_RETRY_DELETE_TIMES) {