Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Re: [Bug 30439] spurious "circular dependency" error

[I'm mailing this to aspectj-users because the bugzilla return address 
bounced.  See http://dev.eclipse.org/bugs/show_bug.cgi?id=30439 for
context.]

Jim Hugunin writes:
 > The error message needs much work.  It should say something closer to:
 >   can't determine precedence between two pieces of advice that apply to the 
 > same join point (method-execution(void A.f()))

Yes, but, the pointcuts do not overlap!

  pointcut p1(): execution(void f()) && cflow(execution(void f1()));
  pointcut p2(): execution(void f()) && cflow(execution(void f2()));

The first only applies to f in the cflow of f1, while the second only
applies to f in the cflow of f2.  No execution of f is in both cflows:

  void f1() { f(); }
  void f2() { f(); }
  void f() { }

Or am I missing something?

--Doug


Back to the top