[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Capture args with withincode and call

Hi,

When I use withincode() && call() && args() all in the same pointcut the
args is applied to the call designator. Is this avoidable? Because what I
want is to capture the args of the withincode designator and do not restrict
the call designator.

e.g.

pointcut test(A a, B b) :
withincode(* C.method1(A, B)) &&
call(* A.*(..)) &&
args(a, b);

So this captures the calls with arguments matching (A, B) and this is the
problem.
Thanks.
-- 
View this message in context: http://www.nabble.com/Capture-args-with-withincode-and-call-tf3220219.html#a8943156
Sent from the AspectJ - users mailing list archive at Nabble.com.