]> granicus.if.org Git - icu/commitdiff
ICU-13606 fix Java 6 build breakage
authorMarkus Scherer <markus.icu@gmail.com>
Fri, 2 Mar 2018 00:37:43 +0000 (00:37 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Fri, 2 Mar 2018 00:37:43 +0000 (00:37 +0000)
X-SVN-Rev: 41044

icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/MeasureUnitThreadTest.java

index 05fb18f03b2696ef39a83502b5410f2c04cb8178..6869734b0069324dffd188e06bc0fdd82893d81a 100644 (file)
@@ -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;
         }
     }
 }
-