As of commit 361b18c ("jit, x86: spill exception object reference at exception handler entry"), Jato is finally able to compile and run the following Java code:
public class Exceptions {
public static void main(String[] args) {
try {
throwException();
} catch (Exception e) {
// System.out.println("Exception caught");
}
}
private static void throwException() {
throw new RuntimeException();
}
}
And yes, if you remove the comments from the
S.o.println() call, Jato will crash and burn. :-)