summaryrefslogtreecommitdiffstats
path: root/tests/new/scopeTypingBug/Driver.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new/scopeTypingBug/Driver.java')
-rw-r--r--tests/new/scopeTypingBug/Driver.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/new/scopeTypingBug/Driver.java b/tests/new/scopeTypingBug/Driver.java
new file mode 100644
index 000000000..845789b09
--- /dev/null
+++ b/tests/new/scopeTypingBug/Driver.java
@@ -0,0 +1,16 @@
+
+import org.aspectj.testing.Tester;
+
+public class Driver {
+ private static java.util.Vector v = new java.util.Vector();
+
+ public static void main(String[] args) { test(); }
+
+ public static void test() {
+ v.addElement("foo");
+ boolean containsFoo = v.contains("foo");
+ Object v = new Object();
+
+ Tester.check(containsFoo, "Vector contains element added");
+ }
+}