changeset 5413:9cb304dd71d4

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 72af24348b2b
children f109feb13698
files test/java/nio/MappedByteBuffer/Truncate.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/nio/MappedByteBuffer/Truncate.java	Mon May 21 15:40:30 2012 +0800
+++ b/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) { }
     }