7170203: TEST_BUG: test/java/nio/MappedByteBuffer/Truncate.java failing intermittently
Reviewed-by: chegar
--- a/jdk/test/java/nio/MappedByteBuffer/Truncate.java Mon May 21 15:40:30 2012 +0800
+++ b/jdk/test/java/nio/MappedByteBuffer/Truncate.java Mon May 21 10:41:08 2012 +0100
@@ -88,6 +88,11 @@
}
};
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) { }
}