diff --git a/platform/util/src/com/intellij/execution/rmi/RemoteObject.java b/platform/util/src/com/intellij/execution/rmi/RemoteObject.java index 76f34961a86a..7ddb088747e6 100644 --- a/platform/util/src/com/intellij/execution/rmi/RemoteObject.java +++ b/platform/util/src/com/intellij/execution/rmi/RemoteObject.java @@ -102,7 +102,7 @@ public class RemoteObject implements Remote, Unreferenced { } if (foreignException) { - Throwable wrapper = new Throwable(ex.toString()); + final RuntimeException wrapper = new RuntimeException(ex.toString()); wrapper.setStackTrace(ex.getStackTrace()); ex = wrapper; }