I wonder if we can retrieve the invocation location info from aspect?
For example, when patching open(), there could be several places where open() is invoked. Is it possible to which open() is invoked from aspect?
Yes there's cutpoint passed in when using bind argument to @Aspect, but there seems no invocation location info(like file, line, etc.) in the cutpoint parameter.
I wonder if we can retrieve the invocation location info from aspect?
For example, when patching
open(), there could be several places whereopen()is invoked. Is it possible to whichopen()is invoked from aspect?Yes there's
cutpointpassed in when usingbindargument to@Aspect, but there seems no invocation location info(like file, line, etc.) in thecutpointparameter.