mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-01-26 20:30:29 +08:00
need to increase stack by 1
This commit is contained in:
parent
648e4aa9cc
commit
36e260688e
@ -103,6 +103,7 @@ public class TestClassHandler extends BaseClassHandler {
|
|||||||
List<Byte> types = ClassUtil.getParameterTypes(mn.desc);
|
List<Byte> types = ClassUtil.getParameterTypes(mn.desc);
|
||||||
int size = types.size();
|
int size = types.size();
|
||||||
int parameterOffset = 1;
|
int parameterOffset = 1;
|
||||||
|
mn.maxStack += 1;
|
||||||
il.add(getIntInsn(size));
|
il.add(getIntInsn(size));
|
||||||
il.add(new TypeInsnNode(ANEWARRAY, ClassUtil.CLASS_OBJECT));
|
il.add(new TypeInsnNode(ANEWARRAY, ClassUtil.CLASS_OBJECT));
|
||||||
for (int i = 0; i < size; i++) {
|
for (int i = 0; i < size; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user