changeset 56876:7f1d2c3a99da

8233855: [TESTBUG] appcds/FieldLayoutFlags.java failed to clean up files after test Reviewed-by: hseigel
author iklam
date Fri, 08 Nov 2019 11:03:00 -0800
parents f92ef5d182b5
children 90cf1d4e712f
files test/hotspot/jtreg/runtime/cds/appcds/TestCommon.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/hotspot/jtreg/runtime/cds/appcds/TestCommon.java	Fri Nov 08 11:41:17 2019 -0500
+++ b/test/hotspot/jtreg/runtime/cds/appcds/TestCommon.java	Fri Nov 08 11:03:00 2019 -0800
@@ -343,6 +343,7 @@
             newFile.renameTo(oldFile);
             System.out.println("firstJar = " + firstJar + " Modified");
         } else {
+            zipFile.close();
             System.out.println("firstJar = " + firstJar);
         }
     }