Fix locals calculation in accessor generator

This commit is contained in:
Mumfrey committed 2017-07-27 16:23:17 +01:00
1 parent a7df0a3eb9
commit 5ac85cd931
1 file changed
+1 -1
@@ -67,7 +67,7 @@ public class AccessorGeneratorMethodProxy extends AccessorGenerator {
@Override
public MethodNode generate() {
int size = Bytecode.getArgsSize(this.argTypes) + this.returnType.getSize();
int size = Bytecode.getArgsSize(this.argTypes) + this.returnType.getSize() + (this.isInstanceMethod ? 1 : 0);
MethodNode method = this.createMethod(size, size);
if (this.isInstanceMethod) {
method.instructions.add(new VarInsnNode(Opcodes.ALOAD, 0));