[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] This operator and pointcut negation doubts
|
Please disregard my last email.
In fact
!publicCallsAndCallers(*) allows me to reuse pointcuts with parameters denied.
However my first problem persists. Shouldn't "publicCallsAndCallers" be capturing all of the pointcuts in the first place?
On 12/1/06, Sérgio Bryton <sergiobryton@xxxxxxxxx> wrote:
Thanks for the reply Eric.
Thats a good workaround. However my point is: Shouldn't "publicCallsAndCallers" be capturing all of the pointcuts in the first place?
And second, why can't I reuse a pointcut with parameters within a negation context?
On 12/1/06, Eric Bodden <
eric.bodden@xxxxxxxxxxxxxx> wrote:
> 1. I can not capture classA calls to itself or to classB with pointcut
> "publicCallsAndCallers" . I want to capture each call to any public
> method and the object where the call is made.
>
> 2. Whenever I try to define a pointcut with the negation of another
> pointcut, I can not do it when it has parameters (example: pointcut
> "publicButSayCallsAndCallers") due to "negation doesn't allow binding"
> error, thus limiting its reuse, however, I can do it
> if the pointcut is rewriten without parameters (example: pointcut
> "publicButSayCalls").
If I remember correctly, you can use !publicCallsAndCallers(*).
Eric
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
--
Sérgio Bryton
--
Sérgio Bryton