7170203: TEST_BUG: test/java/nio/MappedByteBuffer/Truncate.java failing intermittently
authoralanb
Mon, 21 May 2012 10:41:08 +0100
changeset 12702 fb8b5f2a4389
parent 12701 c624acdf1852
child 12703 c5ebefaa2f9f
7170203: TEST_BUG: test/java/nio/MappedByteBuffer/Truncate.java failing intermittently Reviewed-by: chegar
jdk/test/java/nio/MappedByteBuffer/Truncate.java
--- 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) { }
     }