Deprecated Argument Conversions

The pre SICStus 3.8.5 method call predicates in this library use a specific form of argument lists containing conversion information so the predicates know how to convert the input arguments from Prolog datatypes to Java datatypes. This is similar to the (new) mechanism described in Conversion between Prolog Arguments and Java Types. The argument lists are standard Prolog lists containing terms on the following form:

jboolean(X)
X is the atom true or false, representing a Java boolean primitive type.
jbyte(X)
X is an integer, which is converted to a Java byte.
jchar(X)
X is an integer, which is converted to a Java char.
jdouble(X)
X is a float, which is converted to a Java double.
jfloat(X)
X is a float, which is converted to a Java float.
jint(X)
X is an integer, which is converted to a Java int.
jlong(X)
X is an integer, which is converted to a Java long.
jshort(X)
X is an integer, which is converted to a Java short.
jobject(X)
X is a reference to a Java object, as returned by jasper_new_object/5 (see Jasper Library Predicates).
jstring(X)
X is an atom, which is converted to a Java String.

If the Prolog term does not fit in the corresponding Java data type (jbyte(4711), for example), the result is undefined.