mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-01-09 20:00:21 +08:00
association check require at least 6 stack space
This commit is contained in:
parent
14c3d841c5
commit
3d62c91291
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user