mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8197930: JNI exception pending in initializeEncoding of jni_util.c
Reviewed-by: mchung, stuefe
This commit is contained in:
parent
2979a83cfa
commit
e9499fa513
1 changed files with 3 additions and 0 deletions
|
@ -838,8 +838,11 @@ InitializeEncoding(JNIEnv *env, const char *encname)
|
|||
CHECK_NULL(String_getBytes_ID);
|
||||
String_init_ID = (*env)->GetMethodID(env, strClazz,
|
||||
"<init>", "([BLjava/lang/String;)V");
|
||||
CHECK_NULL(String_init_ID);
|
||||
String_coder_ID = (*env)->GetFieldID(env, strClazz, "coder", "B");
|
||||
CHECK_NULL(String_coder_ID);
|
||||
String_value_ID = (*env)->GetFieldID(env, strClazz, "value", "[B");
|
||||
CHECK_NULL(String_value_ID);
|
||||
}
|
||||
|
||||
JNIEXPORT jstring
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue