diff options
author | aclement <aclement> | 2006-07-06 08:32:13 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-07-06 08:32:13 +0000 |
commit | 1b5f76ea13de634c148f46cf1dd37f936579ee6a (patch) | |
tree | 8454eebeed335776c1dcadaa1a37a0ba5c4b2f9c /tests/bugs153 | |
parent | d1eb6f3a3df0b6c2694e4b036d6ab318a29e9713 (diff) | |
download | aspectj-1b5f76ea13de634c148f46cf1dd37f936579ee6a.tar.gz aspectj-1b5f76ea13de634c148f46cf1dd37f936579ee6a.zip |
promoted test 147841 to 153tests
Diffstat (limited to 'tests/bugs153')
-rw-r--r-- | tests/bugs153/pr147841/A.java | 12 | ||||
-rw-r--r-- | tests/bugs153/pr147841/C.java | 19 |
2 files changed, 31 insertions, 0 deletions
diff --git a/tests/bugs153/pr147841/A.java b/tests/bugs153/pr147841/A.java new file mode 100644 index 000000000..715918494 --- /dev/null +++ b/tests/bugs153/pr147841/A.java @@ -0,0 +1,12 @@ +package pkg; + +public aspect A { + + before() : execution(* pack.C.method1()) && this(pack.C) { + System.err.println("before exec method1 and this is C"); + } + + before() : call(* pack.C.method2()) && target(pack.C) { + System.err.println("before call to method2 and target is C"); + } +} diff --git a/tests/bugs153/pr147841/C.java b/tests/bugs153/pr147841/C.java new file mode 100644 index 000000000..3b6b49021 --- /dev/null +++ b/tests/bugs153/pr147841/C.java @@ -0,0 +1,19 @@ +package pack; + +public class C { + + public C() { + } + + public void method1() { + new C().method2(); + } + + public void method2() { + } + + public static void main(String[] args) { + new C().method1(); + } + +} |