< prev index next >

test/java/lang/StackWalker/CallerFromMain.java

Print this page

        

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