test/tools/javac/7079713/TestCircularClassfile.java

changeset 1075
a45d78d26450
parent 1072
d0257833498e
child 2525
2eb010b6cb22
     1.1 --- a/test/tools/javac/7079713/TestCircularClassfile.java	Thu Sep 01 09:14:25 2011 -0700
     1.2 +++ b/test/tools/javac/7079713/TestCircularClassfile.java	Thu Sep 01 14:35:59 2011 -0700
     1.3 @@ -149,6 +149,7 @@
     1.4          //step 3: move a classfile from the temp folder to the test subfolder
     1.5          File fileToMove = new File(tmpDir, tk.targetClass);
     1.6          File target = new File(destDir, tk.targetClass);
     1.7 +        target.delete();
     1.8          boolean success = fileToMove.renameTo(target);
     1.9  
    1.10          if (!success) {

mercurial