From: aclement Date: Mon, 7 Aug 2006 12:58:51 +0000 (+0000) Subject: testcode for 152871: parsing bytecode too often (needs a wildcard pattern in the... X-Git-Tag: pre_pr_153572~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=73368931c7c7b346b062321c83a55c86ecd41ffd;p=aspectj.git testcode for 152871: parsing bytecode too often (needs a wildcard pattern in the exclude list) --- 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 @@ + + + + + + + +