This is a two-part answer. The second part is in the top-level message thread No. 5083 and discusses how to pass an IDL-Java object as an argument to another IDL-Java object. Anyhow, to answer this immediate question, the IDL documentation shows the following syntax:
oJava = OBJ_NEW(IDLjavaObject$JAVACLASSNAME, JavaClassName $
[, Arg1, Arg2, ..., ArgN])That is, Java args can be fed to the constructor for an 'IDLJavaObject' in a simple comma-delimited list that follows the 'JavaClassName' argument. In your example, then:
oJBicycle = OBJ_NEW('IDLjavaObject$BICYCLE', 'Bicycle', 3, 18)
; or ...
mygear = 3
myspeed = 18
oJBicycle = OBJ_NEW('IDLjavaObject$BICYCLE', 'Bicycle', mygear, myspeed) James Jones
|