IDEA-162579 "Unrecognized invocation of <init>" when decompiling kotlin bytecode
This commit is contained in:
@@ -306,7 +306,12 @@ public class InvocationExprent extends Exprent {
|
||||
buf.append("this(");
|
||||
}
|
||||
else {
|
||||
throw new RuntimeException("Unrecognized invocation of " + CodeConstants.INIT_NAME);
|
||||
if (instance != null) {
|
||||
buf.append(instance.toJava(indent, tracer)).append(".<init>(");
|
||||
}
|
||||
else {
|
||||
throw new RuntimeException("Unrecognized invocation of " + CodeConstants.INIT_NAME);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user