From 6f30e387cf1c62df03a80c5fb66bfe65a15f4680 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Thu, 8 Mar 2018 13:33:07 +0100 Subject: [PATCH] [java decompiler] unnecessary rethrow (IDEA-187608; EA-81800) No need to propagate ThreadDeath here - the thread is going to finish anyway. --- .../java/decompiler/main/rels/MethodProcessorRunnable.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/org/jetbrains/java/decompiler/main/rels/MethodProcessorRunnable.java b/src/org/jetbrains/java/decompiler/main/rels/MethodProcessorRunnable.java index a639372..8217423 100644 --- a/src/org/jetbrains/java/decompiler/main/rels/MethodProcessorRunnable.java +++ b/src/org/jetbrains/java/decompiler/main/rels/MethodProcessorRunnable.java @@ -50,11 +50,8 @@ public class MethodProcessorRunnable implements Runnable { DecompilerContext.setCurrentContext(parentContext); root = codeToJava(method, methodDescriptor, varProc); } - catch (ThreadDeath ex) { - throw ex; - } - catch (Throwable ex) { - error = ex; + catch (Throwable t) { + error = t; } finally { DecompilerContext.setCurrentContext(null);