> Actually and unfortunately, contrary to your assumption
>
Signature.getDeclaringType() does not yield the same type as
>
thisJoinPoint.getTarget().getClass().
That isn't exactly what I was saying. I was saying this new method you wanted to add, how would its return value differ from thisJoinPoint.getTarget().getClass() - I know that getDeclaringType() would be different from thisJoinPoint.getTarget() since the former is based on the type referenced in the invoke instruction (it is not based on the type of the target, even if that could be statically analyzed) whilst the second is based on the runtime types flowing around. From your test program it seems you want this new method on tip to return the actual declaring class of the method involved?
It all depends what you want at the join point - as your test program shows you can dig around for whatever you want (if you really want the declaring class of the method involved, you can find it). I could push helper code into thisJoinPoint for some of this but I need concrete use cases and votes on requests for it.
cheers,
Andy