From 522f915575b769c3bdbd24d28b0eabf38c310c5b Mon Sep 17 00:00:00 2001 From: Egor Ushakov Date: Mon, 21 May 2018 16:06:20 +0300 Subject: [PATCH] more descriptive exception for IDEA-CR-32210 --- .../java/decompiler/modules/decompiler/exps/ExprUtil.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/java-decompiler/engine/src/org/jetbrains/java/decompiler/modules/decompiler/exps/ExprUtil.java b/plugins/java-decompiler/engine/src/org/jetbrains/java/decompiler/modules/decompiler/exps/ExprUtil.java index 0e6f4a61299b..302d62fd1490 100644 --- a/plugins/java-decompiler/engine/src/org/jetbrains/java/decompiler/modules/decompiler/exps/ExprUtil.java +++ b/plugins/java-decompiler/engine/src/org/jetbrains/java/decompiler/modules/decompiler/exps/ExprUtil.java @@ -26,8 +26,11 @@ public class ExprUtil { if (wrapper != null) { // own class MethodWrapper methodWrapper = wrapper.getMethodWrapper(CodeConstants.INIT_NAME, descriptor); - if (methodWrapper == null && DecompilerContext.getOption(IFernflowerPreferences.IGNORE_INVALID_BYTECODE)) { - return null; + if (methodWrapper == null) { + if (DecompilerContext.getOption(IFernflowerPreferences.IGNORE_INVALID_BYTECODE)) { + return null; + } + throw new RuntimeException("Constructor " + node.classStruct.qualifiedName + "." + CodeConstants.INIT_NAME + descriptor + " not found"); } mask = methodWrapper.synthParameters; }