]> source.dussan.org Git - aspectj.git/commitdiff
1.5 API: changed new PrintStream(File, ..) to new PrintStream(new FileOutputStream...
authormwebster <mwebster>
Thu, 1 Jun 2006 11:52:55 +0000 (11:52 +0000)
committermwebster <mwebster>
Thu, 1 Jun 2006 11:52:55 +0000 (11:52 +0000)
tests/src/org/aspectj/systemtest/ajc152/SynchronizationTransformTests.java

index 6a93cda4efecc43958a925d31e33730aa36a9fc5..c70144e544b8c0dcf3c903541eec91847bceb51a 100644 (file)
@@ -13,6 +13,7 @@ package org.aspectj.systemtest.ajc152;
 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;
@@ -283,7 +284,7 @@ public class SynchronizationTransformTests extends XMLBasedAjcTestCase {
        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);