jdk/test/tools/pack200/Utils.java
changeset 41752 0c5a98b2e56c
parent 40261 86a49ba76f52
child 43185 d75d9ff8d4e7
--- a/jdk/test/tools/pack200/Utils.java	Tue Oct 25 10:31:49 2016 +0100
+++ b/jdk/test/tools/pack200/Utils.java	Tue Oct 25 07:38:50 2016 -0700
@@ -94,7 +94,7 @@
         }
         File srcDir = new File(getVerifierDir(), "src");
         List<File> javaFileList = findFiles(srcDir, createFilter(JAVA_FILE_EXT));
-        File tmpFile = File.createTempFile("javac", ".tmp");
+        File tmpFile = File.createTempFile("javac", ".tmp", new File("."));
         XCLASSES.mkdirs();
         FileOutputStream fos = null;
         PrintStream ps = null;
@@ -208,6 +208,10 @@
                 Utils.createFilter(".idx")));
         toDelete.addAll(Utils.findFiles(new File("."),
                 Utils.createFilter(".gidx")));
+        toDelete.addAll(Utils.findFiles(new File("."),
+                Utils.createFilter(".tmp")));
+        toDelete.addAll(Utils.findFiles(new File("."),
+                Utils.createFilter(".class")));
         for (File f : toDelete) {
             f.delete();
         }