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

Chris Hegarty chris.hegarty at oracle.com
Thu Jul 27 10:11:57 UTC 2017


> On 26 Jul 2017, at 21:22, Andrey Nazarov <andrey.x.nazarov at oracle.com> wrote:
> 
> Hi,
> 
> Please review this simple documentation patch
> 
> diff -r a133a7d1007b test/lib/jdk/test/lib/util/FileUtils.java
> --- a/test/lib/jdk/test/lib/util/FileUtils.java	Tue Jul 25 17:04:46 2017 -0700
> +++ b/test/lib/jdk/test/lib/util/FileUtils.java	Wed Jul 26 13:20:44 2017 -0700
> @@ -98,6 +98,7 @@
>         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) {

Thank you. Reviewed.

-Chris.


More information about the core-libs-dev mailing list