need to increase stack by 1

This commit is contained in:
金戟 2020-11-16 14:25:20 +08:00
parent 648e4aa9cc
commit 36e260688e

View File

@ -103,6 +103,7 @@ public class TestClassHandler extends BaseClassHandler {
List<Byte> types = ClassUtil.getParameterTypes(mn.desc);
int size = types.size();
int parameterOffset = 1;
mn.maxStack += 1;
il.add(getIntInsn(size));
il.add(new TypeInsnNode(ANEWARRAY, ClassUtil.CLASS_OBJECT));
for (int i = 0; i < size; i++) {