Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Advising all calls to all methods within a certain package

Hi Tyler,

On 23 Jun 2008, at 15:46, Tyler DeWitt wrote:
I'm no expert, but can't you make a condition of the pointcut a not? Something like:

Pointcut allCalls(): call(* java.io..*.*(..)) && !(* java.lang..*.*(..));

I don't know why it would trip on java.lang, maybe some weird inheritance.


I would probably need something more general, there may be more packages
being picked up. The inheritance issue is good insight, thanks!


Raffi


Back to the top