more descriptive exception for IDEA-CR-32210

master
Egor Ushakov 6 years ago
parent c4f23b9a16
commit c5a0dc3acb
  1. 7
      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;
}

Loading…
Cancel
Save