Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] This operator and pointcut negation doubts

> 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


Back to the top