jdk/test/java/nio/MappedByteBuffer/Truncate.java
changeset 12702 fb8b5f2a4389
parent 6128 f95e5fdc1a65
child 14342 8435a30053c1
equal deleted inserted replaced
12701:c624acdf1852 12702:fb8b5f2a4389
    86                 } catch (Exception ignore) {
    86                 } catch (Exception ignore) {
    87                 }
    87                 }
    88             }
    88             }
    89         };
    89         };
    90         Thread t = new Thread(r);
    90         Thread t = new Thread(r);
       
    91         t.setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
       
    92             public void uncaughtException(Thread t, Throwable e) {
       
    93                 e.printStackTrace();
       
    94             }
       
    95         });
    91         t.start();
    96         t.start();
    92         try { t.join(); } catch (InterruptedException ignore) { }
    97         try { t.join(); } catch (InterruptedException ignore) { }
    93     }
    98     }
    94 }
    99 }