8210345: The Japanese message of FileNotFoundException garbled

Reviewed-by: alanb
This commit is contained in:
Xueming Shen 2018-09-07 10:17:49 -07:00
parent c0d51dc514
commit 23ec584fda

View file

@ -211,11 +211,7 @@ throwFileNotFoundException(JNIEnv *env, jstring path)
n = getLastErrorString(buf, sizeof(buf));
if (n > 0) {
#ifdef WIN32
why = (*env)->NewStringUTF(env, buf);
#else
why = JNU_NewStringPlatform(env, buf);
#endif
CHECK_NULL(why);
}
x = JNU_NewObjectByName(env,