You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pr71159.aj 337B

1234567891011121314151617181920212223242526272829303132
  1. class A {
  2. private void foo() {}
  3. }
  4. class B extends A {
  5. protected void foo() {}
  6. }
  7. class C extends B {}
  8. class D extends C {
  9. public void foo() {}
  10. }
  11. aspect X {
  12. void bar() {
  13. D d = new D();
  14. d.foo();
  15. }
  16. declare warning : call(* B.foo()) : "should match";
  17. declare warning : call(* A.foo()) : "should not match";
  18. }