association check require at least 6 stack space

This commit is contained in:
金戟 2021-04-29 13:23:19 +08:00
parent 14c3d841c5
commit 3d62c91291

View File

@ -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);
}