mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fix parsing InvokeDynamic method handle
This commit is contained in:
parent
7fd414c84e
commit
ba54f82dc0
|
@ -103,8 +103,8 @@ public class MethodHandle {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static MethodHandle virtualCaller(String className, String name, ValueType... arguments) {
|
public static MethodHandle virtualCaller(String className, String name, ValueType... arguments) {
|
||||||
ValueType valueType = arguments[0];
|
ValueType valueType = arguments[arguments.length - 1];
|
||||||
arguments = Arrays.copyOfRange(arguments, 1, arguments.length);
|
arguments = Arrays.copyOfRange(arguments, 0, arguments.length - 1);
|
||||||
return new MethodHandle(MethodHandleType.INVOKE_VIRTUAL, className, name, valueType, arguments);
|
return new MethodHandle(MethodHandleType.INVOKE_VIRTUAL, className, name, valueType, arguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user