7170203: TEST_BUG: test/java/nio/MappedByteBuffer/Truncate.java failing intermittently

Reviewed-by: chegar
This commit is contained in:
Alan Bateman 2012-05-21 10:41:08 +01:00
parent d11c407c11
commit 66b51d0b9f

@ -88,6 +88,11 @@ public class Truncate {
}
};
Thread t = new Thread(r);
t.setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
public void uncaughtException(Thread t, Throwable e) {
e.printStackTrace();
}
});
t.start();
try { t.join(); } catch (InterruptedException ignore) { }
}