7170203: TEST_BUG: test/java/nio/MappedByteBuffer/Truncate.java failing intermittently
Reviewed-by: chegar
diff --git a/test/java/nio/MappedByteBuffer/Truncate.java b/test/java/nio/MappedByteBuffer/Truncate.java
index 09dee07..be74c80 100644
--- a/test/java/nio/MappedByteBuffer/Truncate.java
+++ b/test/java/nio/MappedByteBuffer/Truncate.java
@@ -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) { }
}