corda/classpath/TestExceptions.java
Joel Dice 38cea04322 progress towards thread support
This includes support for using the least significant bits of the class
pointer to indicate object state, which we'll use to indicate the
presence of a monitor pointer, among other things.
2007-07-01 15:34:22 -06:00

22 lines
414 B
Java

public class TestExceptions {
private static void evenMoreDangerous() {
throw new RuntimeException("chaos! panic! overwhelming anxiety!");
}
private static void moreDangerous() {
// synchronized (TestExceptions.class) {
evenMoreDangerous();
// }
}
private static void dangerous() {
moreDangerous();
}
public static void main(String[] args) {
dangerous();
}
}