for static invoke, no more stack required

This commit is contained in:
金戟 2020-12-29 16:38:13 +08:00
parent 9e393b5ef5
commit df4ac8e950

View File

@ -209,7 +209,6 @@ public class SourceClassHandler extends BaseClassHandler {
AbstractInsnNode[] instructions, String ownerClass,
int opcode, int start, int end) {
LogUtil.diagnose(" Line %d, mock method %s used", getLineNum(instructions, start), substitutionMethod);
mn.maxStack++;
MethodInsnNode method = (MethodInsnNode)instructions[end];
String testClassName = ClassUtil.getTestClassName(cn.name);
if (Opcodes.INVOKESTATIC == opcode || isCompanionMethod(ownerClass, opcode)) {