From df4ac8e950ecdb943bb4ddfd3279693fc292fdb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E6=88=9F?= Date: Tue, 29 Dec 2020 16:38:13 +0800 Subject: [PATCH] for static invoke, no more stack required --- .../com/alibaba/testable/agent/handler/SourceClassHandler.java | 1 - 1 file changed, 1 deletion(-) diff --git a/testable-agent/src/main/java/com/alibaba/testable/agent/handler/SourceClassHandler.java b/testable-agent/src/main/java/com/alibaba/testable/agent/handler/SourceClassHandler.java index ca39b48..038c165 100644 --- a/testable-agent/src/main/java/com/alibaba/testable/agent/handler/SourceClassHandler.java +++ b/testable-agent/src/main/java/com/alibaba/testable/agent/handler/SourceClassHandler.java @@ -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)) {