Is there a way to get call site information (line number, etc.) from a CallerInvocation?
Also is there some sort of a Wrapper interface for getting arguments and the called method/constructor from a CallerInvocation? All sublasses seem to define means for doing so.
You need to cast it to the correct subclass (MethodCallefByMethodInvocation etc.) and access the methods from there.
You mean, line # information is never recorded at all?..
This is a little surprising because I would think that this is not an uncommon requirement to disambiguate based on the call site.
Also, is the situation any different for "callee" pointcuts? It is possible to query the calling method for the line #?
writing an aspect that depends on line number sounds quite dangerous and eroneous. We will never support it..Sorry...
I didn't mean depending on the line number, sorry...
I just meant logging the line number for debugging purposes. Anyway, I got it to work using exceptions, which allow one to query the stack trace.