src/java.base/share/native/libjava/jni_util.c
changeset 50527 83fd54252ee4
parent 49557 7b00ac6c11ab
child 57868 7ae075afc72f
child 58678 9cf78a70fa4f
equal deleted inserted replaced
50526:3a5aafb12ae6 50527:83fd54252ee4
   836     String_getBytes_ID = (*env)->GetMethodID(env, strClazz,
   836     String_getBytes_ID = (*env)->GetMethodID(env, strClazz,
   837                                              "getBytes", "(Ljava/lang/String;)[B");
   837                                              "getBytes", "(Ljava/lang/String;)[B");
   838     CHECK_NULL(String_getBytes_ID);
   838     CHECK_NULL(String_getBytes_ID);
   839     String_init_ID = (*env)->GetMethodID(env, strClazz,
   839     String_init_ID = (*env)->GetMethodID(env, strClazz,
   840                                          "<init>", "([BLjava/lang/String;)V");
   840                                          "<init>", "([BLjava/lang/String;)V");
       
   841     CHECK_NULL(String_init_ID);
   841     String_coder_ID = (*env)->GetFieldID(env, strClazz, "coder", "B");
   842     String_coder_ID = (*env)->GetFieldID(env, strClazz, "coder", "B");
       
   843     CHECK_NULL(String_coder_ID);
   842     String_value_ID = (*env)->GetFieldID(env, strClazz, "value", "[B");
   844     String_value_ID = (*env)->GetFieldID(env, strClazz, "value", "[B");
       
   845     CHECK_NULL(String_value_ID);
   843 }
   846 }
   844 
   847 
   845 JNIEXPORT jstring
   848 JNIEXPORT jstring
   846 NewStringPlatform(JNIEnv *env, const char *str)
   849 NewStringPlatform(JNIEnv *env, const char *str)
   847 {
   850 {