From: aclement Date: Thu, 11 Sep 2008 07:11:27 +0000 (+0000) Subject: 246918: perclause: testcode X-Git-Tag: V1_6_2~85 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0bc43d34b27ced82b40e48ac0645ed1ba94d2d2f;p=aspectj.git 246918: perclause: testcode --- diff --git a/tests/bugs162/pr246918/Base.java b/tests/bugs162/pr246918/Base.java new file mode 100644 index 000000000..463203f1e --- /dev/null +++ b/tests/bugs162/pr246918/Base.java @@ -0,0 +1,6 @@ +public abstract aspect Base pertypewithin(*) { + before(): execution(* *(..)) && !within(Base+) { + System.err.println("advice fired "+thisJoinPoint.getSourceLocation().getWithinType()); + } +} + diff --git a/tests/bugs162/pr246918/Base2.java b/tests/bugs162/pr246918/Base2.java new file mode 100644 index 000000000..c68a85e7b --- /dev/null +++ b/tests/bugs162/pr246918/Base2.java @@ -0,0 +1,8 @@ +public abstract aspect Base2 pertypewithin(*) { + abstract pointcut scope(); + + before(): execution(* *(..)) && !within(Base2+) && scope() { + System.err.println("advice fired "+thisJoinPoint.getSourceLocation().getWithinType()); + } +} + diff --git a/tests/bugs162/pr246918/Code.java b/tests/bugs162/pr246918/Code.java new file mode 100644 index 000000000..23d764f1d --- /dev/null +++ b/tests/bugs162/pr246918/Code.java @@ -0,0 +1,5 @@ +public class Code { + public static void main(String[] argv) { + new Dode().foo(); + } +} diff --git a/tests/bugs162/pr246918/Dode.java b/tests/bugs162/pr246918/Dode.java new file mode 100644 index 000000000..305c586af --- /dev/null +++ b/tests/bugs162/pr246918/Dode.java @@ -0,0 +1,3 @@ +public class Dode { + public void foo() {} +} diff --git a/tests/bugs162/pr246918/aop1.xml b/tests/bugs162/pr246918/aop1.xml new file mode 100644 index 000000000..84ed60c94 --- /dev/null +++ b/tests/bugs162/pr246918/aop1.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/tests/bugs162/pr246918/aop2.xml b/tests/bugs162/pr246918/aop2.xml new file mode 100644 index 000000000..a90e7ef74 --- /dev/null +++ b/tests/bugs162/pr246918/aop2.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/bugs162/pr246918/aop3.xml b/tests/bugs162/pr246918/aop3.xml new file mode 100644 index 000000000..4d2daf617 --- /dev/null +++ b/tests/bugs162/pr246918/aop3.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/tests/bugs162/pr246918/aop4.xml b/tests/bugs162/pr246918/aop4.xml new file mode 100644 index 000000000..7b7436c58 --- /dev/null +++ b/tests/bugs162/pr246918/aop4.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/tests/bugs162/pr246918/readme.txt b/tests/bugs162/pr246918/readme.txt new file mode 100644 index 000000000..18dc5d562 --- /dev/null +++ b/tests/bugs162/pr246918/readme.txt @@ -0,0 +1,3 @@ +aop1 - ptw base aspect with concrete aspect including single pointcut +aop2 - ptw sub aspect limiting application to D* type (no xml pointcut) +aop3 - ptw sub aspect, concretized scope in sub aspect