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
illegalArgument("Cannot invoke a method on a primitive value");
@@ -23,7 +23,9 @@ public abstract class Invocation extends Value {
23
23
}
24
24
25
25
for (inti = 0; i < arguments.size(); i++) {
26
-
if (methodTypeDesc.parameterType(i).isPrimitive() && !arguments.get(i).type.equals(methodTypeDesc.parameterType(i))) {
26
+
if (methodTypeDesc.parameterType(i).isPrimitive() && !TypeUtils.jvmInternalTypeOf(arguments.get(i).type).equals(TypeUtils.jvmInternalTypeOf(methodTypeDesc.parameterType(i)))) {
27
+
// TODO: Convert byte, char, short, boolean rsp. type check it
28
+
// TODO: Floating point conversion if required...
27
29
illegalArgument("Parameter " + i + " of method " + name + " is a " + TypeUtils.toString(methodTypeDesc.parameterType(i)) + " type, but got " + TypeUtils.toString(arguments.get(i).type));
0 commit comments