OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.jni/] [field.c] - Blame information for rev 765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
#include <jni.h>
2
#include <field.h>
3
 
4
JNIEXPORT jobjectArray JNICALL
5
Java_field_fetch (JNIEnv *env, jobject this)
6
{
7
  jclass cls;
8
  jfieldID fid;
9
  jobjectArray obj;
10
 
11
  cls = (*env)->GetObjectClass (env, this);
12
  if (! cls)
13
    return 0;
14
 
15
  fid = (*env)->GetFieldID (env, cls, "F", "[Ljava/lang/Object;");
16
  if (! fid)
17
    return 0;
18
 
19
  obj = (*env)->GetObjectField (env, this, fid);
20
 
21
  return obj;
22
}
23
 
24
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.