diff options
author | aclement <aclement> | 2007-12-07 13:32:24 +0000 |
---|---|---|
committer | aclement <aclement> | 2007-12-07 13:32:24 +0000 |
commit | a36f9ce5a39bf5161996374ccce8384fcde39025 (patch) | |
tree | 26486263c4cc0e40bffd7124524db40d0d4c11b0 /tests/bugs | |
parent | d32f09ff0dafcc36a7655dc6fbda35f5b4feff62 (diff) | |
download | aspectj-a36f9ce5a39bf5161996374ccce8384fcde39025.tar.gz aspectj-a36f9ce5a39bf5161996374ccce8384fcde39025.zip |
PointcutDoctor javadoc - 193065
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/pointcutdoctor-bug193065/Aspect.aj | 18 | ||||
-rw-r--r-- | tests/bugs/pointcutdoctor-bug193065/Bar.java | 6 | ||||
-rw-r--r-- | tests/bugs/pointcutdoctor-bug193065/Foo.java | 9 |
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() { + + } +} |