Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] "can't determine precedence"


Hi André,

Advice precedence is covered in the AspectJ Programming Guide here : http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/aspectj-home/doc/progguide/printable.html#d0e6220

Best regards,
George
________________________________________
George C. Harley




André Dantas Rocha <ad-rocha@xxxxxxxxxx>
Sent by: aspectj-users-admin@xxxxxxxxxxx

12/12/2004 16:50

Please respond to
aspectj-users@xxxxxxxxxxx

To
<aspectj-users@xxxxxxxxxxx>
cc
Subject
[aspectj-users] "can't determine precedence"





Hi,
 
I have 3 aspects:
 
abstract aspect Tracing {
  pointcut validCalls() : call(* *.*(..)) && !within(aftt..*);
 
  // removing this advice everything works fine
  after() : validCalls() && if (traceEnabled) {  }
}
 
abstract aspect Instrumentation {
  public abstract pointcut operationCall();

 pointcut valid() : cflow(testExecution()) && !cflowbelow(execution (* aftt..*.*(..)));
 
 pointcut interception() : operationCall() && valid();

 
  after() : interception() {  }
}
 
public aspect Test extends Instrumentation {
  public pointcut operationCall() : call(public static boolean Identifier.verify(java.lang.String));
}
 
When compiling I receive the following error (removing the Tracing.after() advice everything works fine):
 
"can't determine precedence between two or more pieces of advice that apply to the same join point"
 
What this error means? how can I correct it?
 
Thanks,
 
André

Back to the top