diff options
author | acolyer <acolyer> | 2004-12-16 13:08:07 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2004-12-16 13:08:07 +0000 |
commit | d2ef5057552185144c54afa37a7f7de81664ea9c (patch) | |
tree | a6c03f61b6b98a1ffb23d855bc89dada210e73c9 /tests/bugs/PR61658.java | |
parent | 2f85beef220b0b67fefb587b9045d80fd1356da1 (diff) | |
download | aspectj-d2ef5057552185144c54afa37a7f7de81664ea9c.tar.gz aspectj-d2ef5057552185144c54afa37a7f7de81664ea9c.zip |
more ambiguous bindings testing
Diffstat (limited to 'tests/bugs/PR61658.java')
-rw-r--r-- | tests/bugs/PR61658.java | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/bugs/PR61658.java b/tests/bugs/PR61658.java new file mode 100644 index 000000000..1949ed6dc --- /dev/null +++ b/tests/bugs/PR61658.java @@ -0,0 +1,37 @@ +class A { + void m() { + System.out.println("A"); + } + } + +class B extends A { + void m() { + System.out.println("B"); + } + } + + +aspect FunkyPointcut { + + after(A a, B b) returning: + call(* foo(*,*)) && + (args(b,a) || args(a,b)) { + System.out.println("Woven"); + } +} + + +public class PR61658 { + + public static void foo(A a, A b) { + a.m(); + b.m(); + } + + public static void main(String[] args) { + A a = new A(); + B b = new B(); + foo(b,a); + } + +}
\ No newline at end of file |