Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] infinite recursion with this()

Hi

Can someone help me to avoid infinite recursion in the aspect.
I tried to add "&& !within(Context) && !withincode(Simple.new()) &&
!adviceexecution()" to
the pointcut, it it did not help.

public class Simple {
	public void foo1(){ }
}

public aspect Context {
	before (Simple s) : this(s) {
		System.out.println("p4");
		s.foo1();
	}
}

Thanks Denes


Back to the top