Community
Participate
Working Groups
The pointcut call(* Foo.*(..)) captures calls to methods defined in class Foo but does not capture calls to parent class methods. For example, given a class Account which defines methods debit and credit (and inherits method toString from Object), the pointcut: call(* Account.*(..)) captures the second and third lines of the snippet below but not the call to toString() in the fourth: Account account = new Account(12456); account.credit(100); account.debit(50); System.out.println( account.toString() ); This behavior is highly undesirable as the join points captured by a "call" pointcut would silently change as a result of refactoring methods from a class to a parent class.
See bug 41952 for a fairly thorough explanation of what's going on here. *** This bug has been marked as a duplicate of 41952 ***