From a36f9ce5a39bf5161996374ccce8384fcde39025 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 7 Dec 2007 13:32:24 +0000 Subject: PointcutDoctor javadoc - 193065 --- tests/bugs/pointcutdoctor-bug193065/Aspect.aj | 18 ++++++++++++++++++ tests/bugs/pointcutdoctor-bug193065/Bar.java | 6 ++++++ tests/bugs/pointcutdoctor-bug193065/Foo.java | 9 +++++++++ 3 files changed, 33 insertions(+) create mode 100644 tests/bugs/pointcutdoctor-bug193065/Aspect.aj create mode 100644 tests/bugs/pointcutdoctor-bug193065/Bar.java create mode 100644 tests/bugs/pointcutdoctor-bug193065/Foo.java (limited to 'tests/bugs') diff --git a/tests/bugs/pointcutdoctor-bug193065/Aspect.aj b/tests/bugs/pointcutdoctor-bug193065/Aspect.aj new file mode 100644 index 000000000..60766b74f --- /dev/null +++ b/tests/bugs/pointcutdoctor-bug193065/Aspect.aj @@ -0,0 +1,18 @@ + +public aspect Aspect { + //:method-call(void Foo.method1())=real + //:(virtual) method-call(void Foo.method2())=virtual + pointcut calls(): call(* Foo.*(..)); + + //:(virtual) method-call(void Bar.bar())=virtual + pointcut callBar():call(* Bar.*(..)); + + //:method-call(void Foo.method1())=real + //:(virtual) method-call(void Foo.method2())=virtual + pointcut callsWithin(): call(* Foo.*(..)) && within(Bar); + + //:method-call(void Foo.method1())=real + //:(virtual) method-call(void Foo.method2())=virtual + pointcut callsWithincode(): call(* Foo.*(..))&&withincode(* Bar.*(..)); + +} diff --git a/tests/bugs/pointcutdoctor-bug193065/Bar.java b/tests/bugs/pointcutdoctor-bug193065/Bar.java new file mode 100644 index 000000000..6cad1511f --- /dev/null +++ b/tests/bugs/pointcutdoctor-bug193065/Bar.java @@ -0,0 +1,6 @@ +public class Bar { + public void bar() { + Foo f = new Foo(); + f.method1(); + } +} diff --git a/tests/bugs/pointcutdoctor-bug193065/Foo.java b/tests/bugs/pointcutdoctor-bug193065/Foo.java new file mode 100644 index 000000000..e49e33e7c --- /dev/null +++ b/tests/bugs/pointcutdoctor-bug193065/Foo.java @@ -0,0 +1,9 @@ +public class Foo { + public void method1() { + + } + + public void method2() { + + } +} -- cgit v1.2.3