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 <[EMAIL PROTECTED]> 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
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users




--
Sérgio Bryton
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to