diff options
author | aclement <aclement> | 2006-08-07 12:58:51 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-08-07 12:58:51 +0000 |
commit | 73368931c7c7b346b062321c83a55c86ecd41ffd (patch) | |
tree | 08a04197f6d49ccc488fd640375e6cc7f8943582 /tests/bugs153 | |
parent | d559512e93a09110ceed21b7e6c4d8e13edb2915 (diff) | |
download | aspectj-73368931c7c7b346b062321c83a55c86ecd41ffd.tar.gz aspectj-73368931c7c7b346b062321c83a55c86ecd41ffd.zip |
testcode for 152871: parsing bytecode too often (needs a wildcard pattern in the exclude list)
Diffstat (limited to 'tests/bugs153')
-rw-r--r-- | tests/bugs153/pr152871/MyAspect.java | 12 | ||||
-rw-r--r-- | tests/bugs153/pr152871/MyClass.java | 12 | ||||
-rw-r--r-- | tests/bugs153/pr152871/aop.xml | 8 |
3 files changed, 32 insertions, 0 deletions
diff --git a/tests/bugs153/pr152871/MyAspect.java b/tests/bugs153/pr152871/MyAspect.java new file mode 100644 index 000000000..cbad3a906 --- /dev/null +++ b/tests/bugs153/pr152871/MyAspect.java @@ -0,0 +1,12 @@ +package a; + +import org.aspectj.lang.annotation.*; + +@Aspect +public class MyAspect { + //before(): call(* print(..)) { + @Before("call(* print(..))") + public void m() { + System.out.println("advice running"); + } +} diff --git a/tests/bugs153/pr152871/MyClass.java b/tests/bugs153/pr152871/MyClass.java new file mode 100644 index 000000000..5909e4169 --- /dev/null +++ b/tests/bugs153/pr152871/MyClass.java @@ -0,0 +1,12 @@ +package a; + +public class MyClass { + public static void main(String []argv) { + new MyClass().print("hello"); + new MyClass().print("world"); + } + + public void print(String msg) { + System.out.println(msg); + } +} diff --git a/tests/bugs153/pr152871/aop.xml b/tests/bugs153/pr152871/aop.xml new file mode 100644 index 000000000..3ba7ab60e --- /dev/null +++ b/tests/bugs153/pr152871/aop.xml @@ -0,0 +1,8 @@ +<aspectj> + <weaver> + <exclude within="a..MyAspect"/> + </weaver> + <aspects> + <aspect name="a.MyAspect"/> + </aspects> +</aspectj> |