Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Array Constructor Pointcut ?

Hi All,

I have an interesting problem, which I'm hoping someone will know the answer to. Consider this snippet:

> ...
> Random a = new Random[1234];
> ...

What pointcut describes the above call to an array constructor ?
I have tried using the following pointcuts for my advice:

pointcut Z() : call(*.new(..));
pointcut Y() : call(*.new[](..));
pointcut X() : call(*[].new(..));
pointcut W() : call(new(..));
pointcut V() : call(new[](..));

But nothing appears to work, although they do all compile. Any help would be appreciated!

Thanks,

David J. Pearce



Back to the top