mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
TW-45441 revert and clarify: do not wrap RuntimeException
This commit is contained in:
+3
-3
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user