This function returns the field ID (Java handle) for a static field of a class.It is equivalent to the JNI function GetStaticFieldID.
Call
CALL 'JCI_GetStaticFieldID' USING cObj fName fSig fID
cObj | Class object |
fName | Name of the field |
fSig | Signature of the field |
fID | Field ID returned by the function |
Arguments
cObj | Data field of the type Object of the class in which the method is to be searched for. |
fName | Structure of the type |
fSig | Structure of the type |
fID | Data field of the type |
Return value (RETURN-CODE)
JCI-RET-OK
The call was successful.
JCI-RET-ENOVM
No Java VM has been started.
JCI-RET-ENULLOBJ
cObj is JCI-NULL.
JCI-RET-EARGUMENT
cObj is not a class object.
JCI-RET-ENOTFOUND
The field could not be found.
Exceptions
The exceptions generated by the function correspond to those of the JNI function GetStaticFieldID.
Notes
The field is identified by the name and the signature. The signature can be received by the statement,
javap -s <class-name>
the <class-name> being the name of the class identified by cObj.