diff --git a/.hgtags-top-repo b/.hgtags-top-repo index c59603762843fecb5edae3989895550620fe4a53..127576bce0c88e227de926485f78f6ff1c296003 100644 --- a/.hgtags-top-repo +++ b/.hgtags-top-repo @@ -436,3 +436,4 @@ d67a3f1f057f7e31e12f33ebe3667cb73d252268 jdk-10+13 84777531d994ef70163d35078ec9c4127f2eadb5 jdk-9+176 a4371edb589c60db01142e45c317adb9ccbcb083 jdk-9+177 a6c830ee8a6798b186730475e700027cdf4598aa jdk-10+15 +2fe66ca1e2b3c361f949de9cb2894661dc0a3fa2 jdk-10+16 diff --git a/test/lib/jdk/test/lib/util/FileUtils.java b/test/lib/jdk/test/lib/util/FileUtils.java index 8bbaded958697a4982ec8f367f4374dac5ba6211..a5e177790618665ae1221d8944493dd477d4d5c2 100644 --- a/test/lib/jdk/test/lib/util/FileUtils.java +++ b/test/lib/jdk/test/lib/util/FileUtils.java @@ -98,7 +98,7 @@ public final class FileUtils { while (true) { try { Files.delete(path); - while (Files.exists(path)) { + while (!Files.notExists(path)) { times++; if (times > MAX_RETRY_DELETE_TIMES) { throw new IOException("File still exists after " + times + " waits.");