TW-45441 revert and clarify: do not wrap RuntimeException

This commit is contained in:
Gregory.Shrago
2016-05-28 00:53:45 +03:00
parent d877c041f3
commit 346a4c9688
@@ -172,9 +172,9 @@ public class LaterInvocator {
invokeLater(runnable1, modalityState);
semaphore.waitFor();
if (!exception.isNull()) {
Throwable throwable = exception.get();
if (throwable instanceof RuntimeException) throw (RuntimeException)throwable;
throw new RuntimeException(throwable);
// wrap everything to keep the current thread stacktrace
// also TC ComparisonFailure feature depends on this
throw new RuntimeException(exception.get());
}
}