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.
© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.