diff options
author | aclement <aclement> | 2006-05-18 12:58:26 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-05-18 12:58:26 +0000 |
commit | 95b6665e651ab0a640cc5eadff875dde125a5880 (patch) | |
tree | 8afcba4cf537b10df754c870fe7c59028a7f44d6 /tests/bugs152 | |
parent | e1e919408d346b7ff985c4920de7ab2d777a9d3c (diff) | |
download | aspectj-95b6665e651ab0a640cc5eadff875dde125a5880.tar.gz aspectj-95b6665e651ab0a640cc5eadff875dde125a5880.zip |
testcode for 129408
Diffstat (limited to 'tests/bugs152')
-rw-r--r-- | tests/bugs152/pr129408/AtAj.java | 13 | ||||
-rw-r--r-- | tests/bugs152/pr129408/C.java | 9 | ||||
-rw-r--r-- | tests/bugs152/pr129408/aop.xml | 6 |
3 files changed, 28 insertions, 0 deletions
diff --git a/tests/bugs152/pr129408/AtAj.java b/tests/bugs152/pr129408/AtAj.java new file mode 100644 index 000000000..0797235db --- /dev/null +++ b/tests/bugs152/pr129408/AtAj.java @@ -0,0 +1,13 @@ +import org.aspectj.lang.annotation.*; + +@Aspect +public class AtAj { + + @Pointcut("call(* println(..)) && within(C*) && args(s)") + public void p(String s) {} + + @Before("p(s)") + public void m(String s) { + System.err.println("a"); + } +} diff --git a/tests/bugs152/pr129408/C.java b/tests/bugs152/pr129408/C.java new file mode 100644 index 000000000..a1bcce7b1 --- /dev/null +++ b/tests/bugs152/pr129408/C.java @@ -0,0 +1,9 @@ +public class C { + public void sayBar() { + System.err.println("bar"); + } + + public static void main(String[]argv) { + new C().sayBar(); + } +} diff --git a/tests/bugs152/pr129408/aop.xml b/tests/bugs152/pr129408/aop.xml new file mode 100644 index 000000000..d2a623d34 --- /dev/null +++ b/tests/bugs152/pr129408/aop.xml @@ -0,0 +1,6 @@ +<aspectj> + <weaver options=""/> + <aspects> + <aspect name="AtAj"/> + </aspects> +</aspectj> |