From 0bc43d34b27ced82b40e48ac0645ed1ba94d2d2f Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 11 Sep 2008 07:11:27 +0000 Subject: [PATCH] 246918: perclause: testcode --- tests/bugs162/pr246918/Base.java | 6 ++++++ tests/bugs162/pr246918/Base2.java | 8 ++++++++ tests/bugs162/pr246918/Code.java | 5 +++++ tests/bugs162/pr246918/Dode.java | 3 +++ tests/bugs162/pr246918/aop1.xml | 10 ++++++++++ tests/bugs162/pr246918/aop2.xml | 9 +++++++++ tests/bugs162/pr246918/aop3.xml | 10 ++++++++++ tests/bugs162/pr246918/aop4.xml | 10 ++++++++++ tests/bugs162/pr246918/readme.txt | 3 +++ 9 files changed, 64 insertions(+) create mode 100644 tests/bugs162/pr246918/Base.java create mode 100644 tests/bugs162/pr246918/Base2.java create mode 100644 tests/bugs162/pr246918/Code.java create mode 100644 tests/bugs162/pr246918/Dode.java create mode 100644 tests/bugs162/pr246918/aop1.xml create mode 100644 tests/bugs162/pr246918/aop2.xml create mode 100644 tests/bugs162/pr246918/aop3.xml create mode 100644 tests/bugs162/pr246918/aop4.xml create mode 100644 tests/bugs162/pr246918/readme.txt 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 -- 2.39.5