Skip to content
Permalink
Browse files

8243453: java --describe-module failed with non-ASCII module name und…

…er non-UTF8 environment

Reviewed-by: alanb
  • Loading branch information
toshiona authored and Alan Bateman committed May 4, 2020
1 parent e70d76d commit 90e8a0a3dbacba97ba5cb43648a5cb804cd6aed2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/java.base/share/native/libjli/java.c
@@ -1958,7 +1958,7 @@ DescribeModule(JNIEnv *env, char *optString)
NULL_CHECK(cls);
NULL_CHECK(describeModuleID = (*env)->GetStaticMethodID(env, cls,
"describeModule", "(Ljava/lang/String;)V"));
NULL_CHECK(joptString = (*env)->NewStringUTF(env, optString));
NULL_CHECK(joptString = NewPlatformString(env, optString));
(*env)->CallStaticVoidMethod(env, cls, describeModuleID, joptString);
}

0 comments on commit 90e8a0a

Please sign in to comment.