diff --git a/test/tools/javac/7079713/TestCircularClassfile.java b/test/tools/javac/7079713/TestCircularClassfile.java
index <HASH>..<HASH> 100644
--- a/test/tools/javac/7079713/TestCircularClassfile.java
+++ b/test/tools/javac/7079713/TestCircularClassfile.java
@@ -149,6 +149,7 @@ public class TestCircularClassfile {
         //step 3: move a classfile from the temp folder to the test subfolder
         File fileToMove = new File(tmpDir, tk.targetClass);
         File target = new File(destDir, tk.targetClass);
+        target.delete();
         boolean success = fileToMove.renameTo(target);
 
         if (!success) {
<I>: tools/javac/<I>/TestCircularClassfile.java fails on windows
Summary: delete file before renaming another file to it
Reviewed-by: jjg