URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.jni/] [field.c] - Rev 821
Go to most recent revision | Compare with Previous | Blame | View Log
#include <jni.h> #include <field.h> JNIEXPORT jobjectArray JNICALL Java_field_fetch (JNIEnv *env, jobject this) { jclass cls; jfieldID fid; jobjectArray obj; cls = (*env)->GetObjectClass (env, this); if (! cls) return 0; fid = (*env)->GetFieldID (env, cls, "F", "[Ljava/lang/Object;"); if (! fid) return 0; obj = (*env)->GetObjectField (env, this, fid); return obj; }
Go to most recent revision | Compare with Previous | Blame | View Log