This function sets the value of a static field of a class.
It is equivalent to the JNI functions SetStatic<type>Field
. However, it also offers the option of transferring strings directly.
Call
CALL 'JCI_SetStaticField' USING
cObj fID arg res
cObj | Class object |
fID | Field ID |
arg | New value |
res | Result |
Arguments
cObj | Data field of the type |
fID | Data field of the type |
arg | A structure of the form |
res | A structure of the form |
Return value (RETURN-CODE)
JCI-RET-OK
The call was successful.
JCI-RET-ENOVM
No Java VM has been started.
JCI-RET-ENULLID
fID is JCI-NULL
.
JCI-RET-ENULLOBJ
cObj is JCI-NULL
.
JCI-RET-EARGUMENT
cObj is not a class object.
JCI-RET-EARGVERS
The statically generated version number in arg is invalid (possibly overwritten).
JCI-RET-ERESVERS
The statically generated version number in res is invalid (possibly overwritten).
JCI-RET-EARGTYPE
The value of the ArgType
field is invalid.
JCI-RET-EARGCONV
An error occurred while the argument was being converted.
The ResErrCode
field contains a more precise error code.