import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.PrintStream;
import java.util.ArrayList;
private void saveMethod(File f,LazyMethodGen m) {
System.out.println("Saving method into "+f.getName());
try {
- m.print(new PrintStream(f),null);
+ m.print(new PrintStream(new FileOutputStream(f)),null);
} catch (FileNotFoundException e) {
e.printStackTrace();
fail("Couldn't store the method in file "+f);