I am trying to capture a method signature change and throw an error when it happens. But the declare error is not working as expected
@DeclareError("call(* a.b.C.method(..)) && !call(* a.b.C.method(int))")
public static final String errorMsg= "Signature error";
This is always matching the call to this method.
But if I move this pointcut to @Before, then it will not match unless the method signature has changed.
Any idea on why the different behavior between @DeclareError & @Before concerning the pointcuts ?
Thanks