@@ -404,7 +404,7 @@ public Value invokeStatic(Value[] locals, String owner, String name, String desc
404
404
VMHelper helper = vm .getHelper ();
405
405
JavaMethod mn = resolveStaticMethod (owner , name , desc , ctx );
406
406
Locals table = vm .getThreadStorage ().newLocals (mn );
407
- table .copyFrom (locals , 0 , locals .length );
407
+ table .copyFrom (locals , 0 , 0 , locals .length );
408
408
ExecutionContext result = helper .invoke (mn , table );
409
409
return result .getResult ();
410
410
}
@@ -414,7 +414,7 @@ public Value invokeVirtual(Value[] locals, String name, String desc, ExecutionCo
414
414
VMHelper helper = vm .getHelper ();
415
415
JavaMethod method = vm .getLinkResolver ().resolveInterfaceMethod (helper .checkNotNull (locals [0 ]), name , desc , true );
416
416
Locals table = vm .getThreadStorage ().newLocals (method );
417
- table .copyFrom (locals , 0 , locals .length );
417
+ table .copyFrom (locals , 0 , 0 , locals .length );
418
418
ExecutionContext result = helper .invoke (method , table );
419
419
return result .getResult ();
420
420
}
@@ -425,7 +425,7 @@ public Value invokeInterface(Value[] locals, String owner, String name, String d
425
425
InstanceJavaClass klass = (InstanceJavaClass ) helper .tryFindClass (ctx .getOwner ().getClassLoader (), owner , true );
426
426
JavaMethod method = vm .getLinkResolver ().resolveVirtualMethod (helper .checkNotNull (locals [0 ]).getJavaClass (), klass , name , desc );
427
427
Locals table = vm .getThreadStorage ().newLocals (method );
428
- table .copyFrom (locals , 0 , locals .length );
428
+ table .copyFrom (locals , 0 , 0 , locals .length );
429
429
ExecutionContext result = helper .invoke (method , table );
430
430
return result .getResult ();
431
431
}
0 commit comments