Method Signatures
When you invoke any of the jvmcall functions, mosjvm will first look for a method with the types exactly matching those passed in. For example, if you pass two integers, mosjvm will look for a function signature that takes two int values. If passed an argument of type jvmobject, mosjvm will look for a method accepting the exact type of the object reference stored in the jvmobject.
If no match is found, mosjvm will search the class for any method with the correct name that could accept the parameters passed. If multiple matching methods are found, the one chosen is arbitrary, for example if the arguments are a jvmobject containing a java.lang.Integer and your class defines these methods:
public static void myMethod(Object o); public static void myMethod(Number o);
then it is not possible to predict which method mosjvm will call.