mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 17:58:43 +02:00
![aclement](/assets/img/avatar_default.png)
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*
34 lines
842 B
Plaintext
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");
|
|
}
|
|
} |