org.aspectj/tests/bugs/binaryCompat/TraceWithInnerV2.aj
aclement 775d1175b7 Fix for Bugzilla Bug 50641
Better binary compatibility for advice method names 
- I've run the tests a thousand times and they all pass, I'm still nervous about this first big commit though *gulp*
2004-02-09 15:07:37 +00:00

34 lines
842 B
Plaintext

aspect Trace {
public static boolean expectNoSuchMethodError = false;
before(): execution(void doit(..)) {
System.out.println("entering");
}
public void method() {
// Extra method to do nothing but test if the numbering still behaves
}
static aspect InnerTrace {
before(): execution(void doit(..)) {
System.out.println("Inner entering");
}
after() returning: execution(void doit(..)) {
System.out.println("Inner exiting");
}
after() throwing: execution(void doit(..)) {
System.out.println("Inner chucking");
}
before(): execution(* noMatch(..)) {
System.out.println("This doesn't match anything, but checks the sequence number for the next bit of advice is OK");
}
}
after() returning: execution(void doit(..)) {
System.out.println("exiting");
}
}