require more stack space

This commit is contained in:
金戟 2020-11-01 13:42:44 +08:00
parent dc904496fc
commit 5b7382e9b0

View File

@ -106,7 +106,7 @@ public class TestClassHandler extends BaseClassHandler {
il.add(getIntInsn(size));
il.add(new TypeInsnNode(ANEWARRAY, ClassUtil.CLASS_OBJECT));
for (int i = 0; i < size; i++) {
mn.maxStack += 2;
mn.maxStack += 3;
il.add(new InsnNode(DUP));
il.add(getIntInsn(i));
ImmutablePair<Integer, Integer> code = getLoadParameterByteCode(types.get(i));