From: aclement Date: Thu, 17 Jul 2008 17:37:33 +0000 (+0000) Subject: 198181 - testcode X-Git-Tag: V162DEV_M1~168 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ccfe4bf346a7f8145116fcecd68ee93df20f2055;p=aspectj.git 198181 - testcode --- diff --git a/tests/bugs162/pr198181/A.java b/tests/bugs162/pr198181/A.java new file mode 100644 index 000000000..7168ccfc6 --- /dev/null +++ b/tests/bugs162/pr198181/A.java @@ -0,0 +1,14 @@ +package m; + +import org.aspectj.lang.annotation.Around; +import org.aspectj.lang.annotation.Aspect; + +@Aspect("pertarget(execution( public void m.M.run() ))") +public class A { + int i; + @Around("execution( public void m.M.run() )") + public void count() { +// System.out.println(this); + System.out.println("tick " + (i++)); + } +} diff --git a/tests/bugs162/pr198181/M.java b/tests/bugs162/pr198181/M.java new file mode 100644 index 000000000..ce7aff9d2 --- /dev/null +++ b/tests/bugs162/pr198181/M.java @@ -0,0 +1,10 @@ +package m; +public class M { + public void run() { + } + public static void main(String[] args) { + for (int i = 0; i < 3; i++) { + new M().run(); + } + } +} diff --git a/tests/bugs162/pr198181/aop.xml b/tests/bugs162/pr198181/aop.xml new file mode 100644 index 000000000..90fcc9a64 --- /dev/null +++ b/tests/bugs162/pr198181/aop.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java b/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java index 39563df21..92a8f0cb0 100644 --- a/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java @@ -20,6 +20,7 @@ public class Ajc162Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // AspectJ1.6.2 public void testAnnotationDecp_pr239441() { runTest("annotation decp"); } + public void testAtAspectJPerTarget_pr198181() { runTest("ataspectj ltw pertarget"); } // public void testAnnotationValueDecp_pr238992() { runTest("annotation value decp"); } // public void testAnnotationValueDecp_pr238992_2() { runTest("annotation value decp - 2"); } // public void testAnnotationValueDecp_pr238992_3() { runTest("annotation value decp - 3"); } diff --git a/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml b/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml index e302c79e1..bdc633a97 100644 --- a/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml +++ b/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml @@ -61,5 +61,16 @@ + + + + + + + + + + + \ No newline at end of file