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.

PrivatePointcutOverriding.aj 409B

1234567891011121314151617181920212223
  1. abstract aspect SuperAspect {
  2. private pointcut matchedJP() : execution(* foo(..));
  3. declare warning : matchedJP() : "matched join point from super advice";
  4. }
  5. public aspect PrivatePointcutOverriding extends SuperAspect {
  6. private pointcut matchedJP() : execution(* bar(..));
  7. declare warning : matchedJP() : "matched join point from sub advice";
  8. }
  9. class C {
  10. void foo() {}
  11. void bar() {}
  12. }