@@ -49,11 +49,11 @@ // CallerFromMain::main // no caller try { Class<?> c = sw.getCallerClass(); throw new RuntimeException("UOE not thrown. Caller: " + c); - } catch (IllegalStateException e) {} + } catch (IllegalCallerException e) {} // StackWalker::getCallerClass // Runnable::run // Thread::run Thread t1 = new Thread(new Runnable() {