I wouldn't recommend a pointcut that has no 'kind' to it (you are
going to hit a lot of joinpoints), but maybe it is what you meant...

Anyway, you probably need to use cflow().

&& !within(Context) && !withincode(Simple.new()) && !cflow(adviceexecution());

cheers,
Andy

On 2 January 2012 06:04, Dénes Németh <[email protected]> wrote:
> 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
> _______________________________________________
> aspectj-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to