ICU-13606 fix Java 6 build breakage

X-SVN-Rev: 41044
This commit is contained in:
Markus Scherer 2018-03-02 00:37:43 +00:00
parent 28958a1f14
commit d55ba6554d

View 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;
}
}
}