From d55ba6554d87e935f1ed6b43c7e8b597477689b4 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Fri, 2 Mar 2018 00:37:43 +0000 Subject: [PATCH] ICU-13606 fix Java 6 build breakage X-SVN-Rev: 41044 --- .../ibm/icu/dev/test/format/MeasureUnitThreadTest.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/MeasureUnitThreadTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/MeasureUnitThreadTest.java index 05fb18f03b2..6869734b006 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/MeasureUnitThreadTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/MeasureUnitThreadTest.java @@ -83,11 +83,14 @@ public class MeasureUnitThreadTest extends TestFmwk { t1.join(); t2.join(); if (t1.error != null) { - throw new AssertionError("Failure in thread 1", t1.error); + AssertionError error = new AssertionError("Failure in thread 1"); + error.initCause(t1.error); + throw error; } if (t2.error != null) { - throw new AssertionError("Failure in thread 2", t2.error); + AssertionError error = new AssertionError("Failure in thread 2"); + error.initCause(t2.error); + throw error; } } } - -- 2.40.0