posted 16 years ago
Hi. I'm relatively new to AspectJ (used in the past, but not for a while, so I'm a little bit rusty). I've setup a pointcut to catch all method calls, which it does, and then in the advice, I'm trying to print out the actual method that was called. I can do that using the following: thisJoinPoint.getSignature().toString() and that works just fine. However, I'm trying to get the underlying Method object, with thisJoinPoint.getSignature().getMethod(), and the method sometimes returns null when the signature is not null. Can anyone explain why this is happening?
Thanks,
Jeff