diff options
author | aclement <aclement> | 2005-06-14 13:58:09 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-06-14 13:58:09 +0000 |
commit | d6bfe97b4db7f2109a4a088ebd0898b3ef8740e9 (patch) | |
tree | d088f7eb6ff2ec1e4abc99ff5b26a233d1580573 /tests/bugs150/pr99089 | |
parent | e25db87b054247a2b71f6ab709b91e1f776cd223 (diff) | |
download | aspectj-d6bfe97b4db7f2109a4a088ebd0898b3ef8740e9.tar.gz aspectj-d6bfe97b4db7f2109a4a088ebd0898b3ef8740e9.zip |
Tests for 98320, 99228, 99089: [generics][itds]
Diffstat (limited to 'tests/bugs150/pr99089')
-rw-r--r-- | tests/bugs150/pr99089/DataClass.java | 14 | ||||
-rw-r--r-- | tests/bugs150/pr99089/TracingAspect.java | 11 |
2 files changed, 20 insertions, 5 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"); + } } diff --git a/tests/bugs150/pr99089/TracingAspect.java b/tests/bugs150/pr99089/TracingAspect.java index ba3ef7ef6..f318797bf 100644 --- a/tests/bugs150/pr99089/TracingAspect.java +++ b/tests/bugs150/pr99089/TracingAspect.java @@ -1,7 +1,12 @@ import java.util.Vector; privileged aspect TracingAspect { - before(DataClass dc): execution(* DataClass.doit()) && this(dc) { - Vector<Object> myV = dc.getV(); - } + before(DataClass dc): execution(* DataClass.doit()) && this(dc) { + Vector<Object> myV = dc.getV(); + System.err.println("before:Length of v="+myV.size()); + } + after(DataClass dc): execution(* DataClass.doit()) && this(dc) { + Vector<Object> myV = dc.getV(); + System.err.println("after:Length of v="+myV.size()); + } } |