提交 6d6f23a4 编写于 作者: A anazarov

8184961: jdk.test.lib.util.FileUtils.deleteFileWithRetry0 should wait for absence of a file

Reviewed-by: bpb
上级 30f8fb6b
......@@ -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.");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册