From 3d62c91291ebb3f118c105ec9f573d4948a854ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E6=88=9F?= Date: Thu, 29 Apr 2021 13:23:19 +0800 Subject: [PATCH] association check require at least 6 stack space --- .../com/alibaba/testable/agent/handler/MockClassHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/testable-agent/src/main/java/com/alibaba/testable/agent/handler/MockClassHandler.java b/testable-agent/src/main/java/com/alibaba/testable/agent/handler/MockClassHandler.java index 708755c..5f17392 100644 --- a/testable-agent/src/main/java/com/alibaba/testable/agent/handler/MockClassHandler.java +++ b/testable-agent/src/main/java/com/alibaba/testable/agent/handler/MockClassHandler.java @@ -165,6 +165,7 @@ public class MockClassHandler extends BaseClassWithContextHandler { il.add(invokeOriginalMethod(mn)); il.add(firstLine); il.add(new FrameNode(F_SAME, 0, null, 0, null)); + mn.maxStack = Math.max(6, mn.maxStack); mn.instructions.insertBefore(mn.instructions.getFirst(), il); }