| 6 | import java.util.concurrent.*; |
| 7 | |
| 8 | public class ExceptionThread implements Runnable { |
| 9 | @Override public void run() { |
| 10 | throw new RuntimeException(); |
| 11 | } |
| 12 | public static void main(String[] args) { |
| 13 | ExecutorService es = |
| 14 | Executors.newCachedThreadPool(); |
| 15 | es.execute(new ExceptionThread()); |
| 16 | es.shutdown(); |
| 17 | } |
| 18 | } |
| 19 | /* Output: |
| 20 | ___[ Error Output ]___ |
| 21 | Exception in thread "pool-1-thread-1" |
nothing calls this directly
no outgoing calls
no test coverage detected