diff options
author | aclement <aclement> | 2009-02-25 22:51:25 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-02-25 22:51:25 +0000 |
commit | 997321eeca690086e7a60d796e24bbf25a7699b3 (patch) | |
tree | 348ef3f09da096ec6eb1b3758a44a6e32a0a9ea5 /tests/bugs164/pr266220 | |
parent | 66b8707bc7c42bdca0c365c0027162b3110b0405 (diff) | |
download | aspectj-997321eeca690086e7a60d796e24bbf25a7699b3.tar.gz aspectj-997321eeca690086e7a60d796e24bbf25a7699b3.zip |
266220: generic aspect subtypes in aop.xml
Diffstat (limited to 'tests/bugs164/pr266220')
-rw-r--r-- | tests/bugs164/pr266220/Code.java | 9 | ||||
-rw-r--r-- | tests/bugs164/pr266220/Isolator.java | 8 | ||||
-rw-r--r-- | tests/bugs164/pr266220/aop.xml | 8 |
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/bugs164/pr266220/Code.java b/tests/bugs164/pr266220/Code.java new file mode 100644 index 000000000..eae1c4b02 --- /dev/null +++ b/tests/bugs164/pr266220/Code.java @@ -0,0 +1,9 @@ +public class Code { + public static void main(String[]argv) { + new Code().run(); + } + + public void run() { + System.out.println("running..."); + } +}
\ No newline at end of file diff --git a/tests/bugs164/pr266220/Isolator.java b/tests/bugs164/pr266220/Isolator.java new file mode 100644 index 000000000..301c22ef5 --- /dev/null +++ b/tests/bugs164/pr266220/Isolator.java @@ -0,0 +1,8 @@ +public abstract aspect Isolator<T> { + + pointcut scope(): within(T); + + before(): execution(* *(..)) && scope() { + System.out.println(thisJoinPoint); + } +}
\ No newline at end of file diff --git a/tests/bugs164/pr266220/aop.xml b/tests/bugs164/pr266220/aop.xml new file mode 100644 index 000000000..910ccf541 --- /dev/null +++ b/tests/bugs164/pr266220/aop.xml @@ -0,0 +1,8 @@ +<aspectj> +<aspects> + <concrete-aspect name="IsolatorForCode" extends="Isolator<Code>"/> +</aspects> +<weaver options="-showWeaveInfo"> +</weaver> +</aspectj> + |