Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] pertarget instantiation && within

It is exactly what I want. Thx.

Andrew Eisenberg wrote:
Hi Adam,

I believe that
aspect XYZ pertarget(target(SomeClass) && !cflow(within(XYZ))) {
is what you want.

The reason why you are getting the infinite loop is that the aspect is
bound inside the constructor of SomeClass (which is *not* within(XYZ),
but is in its cflow).



Back to the top