Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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