aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr99089/DataClass.java
diff options
context:
space:
mode:
authoraclement <aclement>2005-06-14 13:58:09 +0000
committeraclement <aclement>2005-06-14 13:58:09 +0000
commitd6bfe97b4db7f2109a4a088ebd0898b3ef8740e9 (patch)
treed088f7eb6ff2ec1e4abc99ff5b26a233d1580573 /tests/bugs150/pr99089/DataClass.java
parente25db87b054247a2b71f6ab709b91e1f776cd223 (diff)
downloadaspectj-d6bfe97b4db7f2109a4a088ebd0898b3ef8740e9.tar.gz
aspectj-d6bfe97b4db7f2109a4a088ebd0898b3ef8740e9.zip
Tests for 98320, 99228, 99089: [generics][itds]
Diffstat (limited to 'tests/bugs150/pr99089/DataClass.java')
-rw-r--r--tests/bugs150/pr99089/DataClass.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/bugs150/pr99089/DataClass.java b/tests/bugs150/pr99089/DataClass.java
index cbfb7905d..91e76763d 100644
--- a/tests/bugs150/pr99089/DataClass.java
+++ b/tests/bugs150/pr99089/DataClass.java
@@ -1,6 +1,16 @@
import java.util.Vector;
public class DataClass {
- private Vector<Object> v = new Vector<Object>();
- private Vector<Object> getV() { return v; }
+ private Vector<Object> v = new Vector<Object>();
+ private Vector<Object> getV() { return v; }
+
+ public static void main(String[]argv) {
+ DataClass dc = new DataClass();
+ dc.v.add("hello");
+ dc.doit();
+ }
+
+ public void doit() {
+ v.add("world");
+ }
}