Browse Source

1.5 API: changed new PrintStream(File, ..) to new PrintStream(new FileOutputStream(), ..)

tags/V1_5_2rc1
mwebster 18 years ago
parent
commit
b5525d9491

+ 2
- 1
tests/src/org/aspectj/systemtest/ajc152/SynchronizationTransformTests.java View 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);

Loading…
Cancel
Save