diff options
author | aclement <aclement> | 2007-11-07 14:55:17 +0000 |
---|---|---|
committer | aclement <aclement> | 2007-11-07 14:55:17 +0000 |
commit | b039791377f005005601d0d303150c5a376f1827 (patch) | |
tree | 966ed11fa54466e4ce80cee6bc25fbc839d590e0 /tests/bugs154/pr209019/case1 | |
parent | 08904ab5e37abd95a50875f36f4ed5ed757b0cc0 (diff) | |
download | aspectj-b039791377f005005601d0d303150c5a376f1827.tar.gz aspectj-b039791377f005005601d0d303150c5a376f1827.zip |
testcode for 169432 and 209019
Diffstat (limited to 'tests/bugs154/pr209019/case1')
-rw-r--r-- | tests/bugs154/pr209019/case1/A.java | 13 | ||||
-rw-r--r-- | tests/bugs154/pr209019/case1/AbstractDurationMethod.java | 11 | ||||
-rw-r--r-- | tests/bugs154/pr209019/case1/DurationMethod.java | 5 | ||||
-rw-r--r-- | tests/bugs154/pr209019/case1/Runner.java | 7 |
4 files changed, 36 insertions, 0 deletions
diff --git a/tests/bugs154/pr209019/case1/A.java b/tests/bugs154/pr209019/case1/A.java new file mode 100644 index 000000000..838d4b5f6 --- /dev/null +++ b/tests/bugs154/pr209019/case1/A.java @@ -0,0 +1,13 @@ +package a.b; + +public class A { + public Object m1() { + return m2(); + } + + public Object m2() { + return m3(); + } + + public Object m3() {return "x";} +} diff --git a/tests/bugs154/pr209019/case1/AbstractDurationMethod.java b/tests/bugs154/pr209019/case1/AbstractDurationMethod.java new file mode 100644 index 000000000..ff397ca5b --- /dev/null +++ b/tests/bugs154/pr209019/case1/AbstractDurationMethod.java @@ -0,0 +1,11 @@ +package c.d; + +public abstract aspect AbstractDurationMethod { + public abstract pointcut methods(); + + Object around(): methods() { + Object o = proceed(); + System.out.println("Proceeded at joinpoint "+thisJoinPoint); + return o; + } +} diff --git a/tests/bugs154/pr209019/case1/DurationMethod.java b/tests/bugs154/pr209019/case1/DurationMethod.java new file mode 100644 index 000000000..6011c4ced --- /dev/null +++ b/tests/bugs154/pr209019/case1/DurationMethod.java @@ -0,0 +1,5 @@ +package c.d;; + +public aspect DurationMethod extends AbstractDurationMethod { + public pointcut methods(): within(a.b.*) && call (public * a..*(..)); +} diff --git a/tests/bugs154/pr209019/case1/Runner.java b/tests/bugs154/pr209019/case1/Runner.java new file mode 100644 index 000000000..b41411662 --- /dev/null +++ b/tests/bugs154/pr209019/case1/Runner.java @@ -0,0 +1,7 @@ +import a.b.*; + +public class Runner { + public static void main(String []argv) { + new A().m1(); + } +} |