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.

pr108816.aj 444B

1234567891011121314151617181920
  1. aspect BadAdvice {
  2. after(Object controller) returning (Object foo):
  3. cflow(adviceexecution() && args(controller, ..) && this(BadAdvice)) &&
  4. call(Bar+.new(..))
  5. {
  6. }
  7. Object around(Object controller) : call(* whoKnows()) && target(controller)
  8. {
  9. return new Bar();
  10. }
  11. public static void main(String args[]) {
  12. (new Bar()).whoKnows();
  13. }
  14. }
  15. class Bar {
  16. void whoKnows() {}
  17. }