changeset 12702:fb8b5f2a4389

7170203: TEST_BUG: test/java/nio/MappedByteBuffer/Truncate.java failing intermittently Reviewed-by: chegar
author alanb
date Mon, 21 May 2012 10:41:08 +0100
parents c624acdf1852
children c5ebefaa2f9f
files jdk/test/java/nio/MappedByteBuffer/Truncate.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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) { }
     }