diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-25 15:29:37 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-25 15:29:37 +0200 |
commit | 3896c6584ea17227ca309a05d6b22124a4bccd96 (patch) | |
tree | 858c9cbeb9a9c0ef05cd62e6e014fd49b6f2888b /src/jvm | |
parent | 2ab50b2c667c75fdf1da0513719fa5f861cab837 (diff) |
jvm: Implement GetStaticObjectField
Diffstat (limited to 'src/jvm')
-rw-r--r-- | src/jvm/jvm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/jvm/jvm.c b/src/jvm/jvm.c index abd2cb8..8c1e44e 100644 --- a/src/jvm/jvm.c +++ b/src/jvm/jvm.c @@ -1501,7 +1501,11 @@ JNIEnv_GetStaticFieldID(JNIEnv* p0, jclass klass, const char* name, const char* static jobject JNIEnv_GetStaticObjectField(JNIEnv* p0, jclass p1, jfieldID p2) { - return NULL; + assert(p0 && p1 && p2); + char symbol[255]; + jvm_form_symbol(jnienv_get_jvm(p0), (jmethodID)p2, symbol, sizeof(symbol)); + jobject (*fun)(JNIEnv*, jobject) = wrapper_create(symbol, dlsym(RTLD_DEFAULT, symbol)); + return fun(p0, p1); } static jboolean |