| 5 | import java.util.concurrent.*; |
| 6 | |
| 7 | class ExceptionThread2 implements Runnable { |
| 8 | @Override public void run() { |
| 9 | Thread t = Thread.currentThread(); |
| 10 | System.out.println("run() by " + t.getName()); |
| 11 | System.out.println( |
| 12 | "eh = " + t.getUncaughtExceptionHandler()); |
| 13 | throw new RuntimeException(); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | class MyUncaughtExceptionHandler implements |
| 18 | Thread.UncaughtExceptionHandler { |
nothing calls this directly
no outgoing calls
no test coverage detected