aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/pointcutdoctor-bug193065/Aspect.aj18
-rw-r--r--tests/bugs/pointcutdoctor-bug193065/Bar.java6
-rw-r--r--tests/bugs/pointcutdoctor-bug193065/Foo.java9
3 files changed, 33 insertions, 0 deletions
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() {
+
+ }
+}