more descriptive exception for IDEA-CR-32210
This commit is contained in:
@@ -26,8 +26,11 @@ public class ExprUtil {
|
|||||||
if (wrapper != null) {
|
if (wrapper != null) {
|
||||||
// own class
|
// own class
|
||||||
MethodWrapper methodWrapper = wrapper.getMethodWrapper(CodeConstants.INIT_NAME, descriptor);
|
MethodWrapper methodWrapper = wrapper.getMethodWrapper(CodeConstants.INIT_NAME, descriptor);
|
||||||
if (methodWrapper == null && DecompilerContext.getOption(IFernflowerPreferences.IGNORE_INVALID_BYTECODE)) {
|
if (methodWrapper == null) {
|
||||||
return 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;
|
mask = methodWrapper.synthParameters;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user