8233855: [TESTBUG] appcds/FieldLayoutFlags.java failed to clean up files after test
authoriklam
Fri, 08 Nov 2019 11:03:00 -0800
changeset 58990 7f1d2c3a99da
parent 58989 f92ef5d182b5
child 58991 90cf1d4e712f
8233855: [TESTBUG] appcds/FieldLayoutFlags.java failed to clean up files after test Reviewed-by: hseigel
test/hotspot/jtreg/runtime/cds/appcds/TestCommon.java
--- 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);
         }
     }