8190984: tools/launcher/TestXcheckJNIWarnings.java WARNING was found in the output

Reviewed-by: dholmes, mchung
This commit is contained in:
Brent Christian 2017-12-12 21:46:06 -05:00
parent eb417da953
commit 276093653a
2 changed files with 3 additions and 1 deletions

View file

@ -186,6 +186,9 @@ Java_java_lang_System_initProperties(JNIEnv *env, jclass cla, jobject props)
jobject ret = NULL;
jstring jVMVal = NULL;
if ((*env)->EnsureLocalCapacity(env, 50) < 0) {
return NULL;
}
sprops = GetJavaProperties(env);
CHECK_NULL_RETURN(sprops, NULL);