From fb7f94b419850b66a0c01edc565f762c74148fa8 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Sat, 18 Dec 2010 21:20:46 +0000 Subject: [PATCH] LUCENE-2819: set this before interuppting also, to prevent false fails git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050718 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/src/test/org/apache/lucene/util/LuceneTestCase.java | 1 + 1 file changed, 1 insertion(+) diff --git a/lucene/src/test/org/apache/lucene/util/LuceneTestCase.java b/lucene/src/test/org/apache/lucene/util/LuceneTestCase.java index 641cf666dd6..92f4da813c7 100644 --- a/lucene/src/test/org/apache/lucene/util/LuceneTestCase.java +++ b/lucene/src/test/org/apache/lucene/util/LuceneTestCase.java @@ -543,6 +543,7 @@ public abstract class LuceneTestCase extends Assert { } catch (InterruptedException e) { e.printStackTrace(); } // try to stop the thread: t.setUncaughtExceptionHandler(null); + Thread.setDefaultUncaughtExceptionHandler(null); t.interrupt(); try { t.join(THREAD_STOP_GRACE_MSEC);