summaryrefslogtreecommitdiffstats
path: root/tests/new
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2004-01-23 20:38:34 +0000
committerjhugunin <jhugunin>2004-01-23 20:38:34 +0000
commit2b4e2512530a5d0a12e92071eb2e3198722dcd6b (patch)
tree65382a25b5d538a0d1aab42fc5d7dfb8cd8fe264 /tests/new
parentdd7daa469f5282eecf6a927c6df4317ce05e5d26 (diff)
downloadaspectj-2b4e2512530a5d0a12e92071eb2e3198722dcd6b.tar.gz
aspectj-2b4e2512530a5d0a12e92071eb2e3198722dcd6b.zip
Fix to stop leaving 'foo' files around in the top of tests after running the suite.
Diffstat (limited to 'tests/new')
-rw-r--r--tests/new/MissingTypeInDeclareParents.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/new/MissingTypeInDeclareParents.java b/tests/new/MissingTypeInDeclareParents.java
index a2fd4f619..7f1e18014 100644
--- a/tests/new/MissingTypeInDeclareParents.java
+++ b/tests/new/MissingTypeInDeclareParents.java
@@ -7,8 +7,8 @@ import java.io.*;
public class MissingTypeInDeclareParents {
public static void main(String[] args) throws Exception {
- FileWriter fr = new FileWriter("foo");
- fr.close();
+ String s = "f" + "oo";
+ int x = s.indexOf("o");
Tester.check(true, "Kilroy was here");
}
}
@@ -17,5 +17,5 @@ class C {
}
aspect A {
/** Xlint warning expected where FileWriter is outside code controlled by implementation */
- declare parents : FileWriter extends Runnable; // CW 20 Xlint warning
+ declare parents : String extends Runnable; // CW 20 Xlint warning
}