org.aspectj/tests/bugs/binaryCompat/Main.java
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

18 lines
355 B
Java

public class Main {
public static void main(String[] args) {
try {
doit();
if (Trace.expectNoSuchMethodError) {
throw new RuntimeException("expected NoSuchMethodError");
}
} catch (NoSuchMethodError e) {
if (!Trace.expectNoSuchMethodError) throw e;
}
}
private static void doit() {
System.out.println("hello world");
}
}