You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
undefined:1: Wrong number of arguments; expected 2*, got 0
*any number for a method with more params than 0.
the cause is at line 45 of V8JavaStaticMethodProxy with the following statement. return V8JavaObjectUtils.translateJavaArgumentToJavascript(coercedMethod.invoke(coercedArguments), V8JavaObjectUtils.getRuntimeSarcastically(receiver), cache);
to be specific, coercedMethod.invoke(coercedArguments) is improper call for a static method.
the following coercedMethod.invoke(null,coercedArguments) I suspect will have the desired effect for static methods with parameters.
with Method.invoke, the first parameter is a live (non static) object of a class, if it is null, it will default to a static methods only of said class. the second parameter(or v varargs if you rather call it) is all the passed variables for the method.
The text was updated successfully, but these errors were encountered:
here is an expected error message
*any number for a method with more params than 0.
the cause is at line 45 of V8JavaStaticMethodProxy with the following statement.
return V8JavaObjectUtils.translateJavaArgumentToJavascript(coercedMethod.invoke(coercedArguments), V8JavaObjectUtils.getRuntimeSarcastically(receiver), cache);
to be specific,
coercedMethod.invoke(coercedArguments)
is improper call for a static method.the following
coercedMethod.invoke(null,coercedArguments)
I suspect will have the desired effect for static methods with parameters.with Method.invoke, the first parameter is a live (non static) object of a class, if it is null, it will default to a static methods only of said class. the second parameter(or v varargs if you rather call it) is all the passed variables for the method.
The text was updated successfully, but these errors were encountered: