mirror of
https://github.com/corda/corda.git
synced 2025-01-21 03:55:00 +00:00
38cea04322
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.
22 lines
414 B
Java
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();
|
|
}
|
|
|
|
}
|