diff options
Diffstat (limited to 'tests/bugs150/pr71159/pr71159.aj')
-rw-r--r-- | tests/bugs150/pr71159/pr71159.aj | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/bugs150/pr71159/pr71159.aj b/tests/bugs150/pr71159/pr71159.aj new file mode 100644 index 000000000..d332b4a4d --- /dev/null +++ b/tests/bugs150/pr71159/pr71159.aj @@ -0,0 +1,32 @@ +class A { + + private void foo() {} + +} + +class B extends A { + + protected void foo() {} + +} + +class C extends B {} + + +class D extends C { + + public void foo() {} + +} + +aspect X { + + void bar() { + D d = new D(); + d.foo(); + } + + declare warning : call(* B.foo()) : "should match"; + declare warning : call(* A.foo()) : "should not match"; + +}
\ No newline at end of file |