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.

PrivateITD.aj 342B

12345678910111213141516171819202122232425262728293031323334
  1. class A {
  2. }
  3. class B extends A {
  4. protected void foo() {}
  5. }
  6. class C extends B {}
  7. class D extends C {
  8. public void foo() {}
  9. }
  10. aspect X {
  11. private void A.foo() {}
  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. }