8190984: tools/launcher/TestXcheckJNIWarnings.java WARNING was found in the output
authorbchristi
Tue, 12 Dec 2017 21:46:06 -0500
changeset 48393 993b004ab38f
parent 48392 10ec0c43cf1d
child 48394 39a84de6afd6
8190984: tools/launcher/TestXcheckJNIWarnings.java WARNING was found in the output Reviewed-by: dholmes, mchung
src/java.base/share/native/libjava/System.c
test/jdk/ProblemList.txt
--- a/src/java.base/share/native/libjava/System.c	Fri Dec 08 13:04:43 2017 -0800
+++ b/src/java.base/share/native/libjava/System.c	Tue Dec 12 21:46:06 2017 -0500
@@ -186,6 +186,9 @@
     jobject ret = NULL;
     jstring jVMVal = NULL;
 
+    if ((*env)->EnsureLocalCapacity(env, 50) < 0) {
+        return NULL;
+    }
     sprops = GetJavaProperties(env);
     CHECK_NULL_RETURN(sprops, NULL);
 
--- a/test/jdk/ProblemList.txt	Fri Dec 08 13:04:43 2017 -0800
+++ b/test/jdk/ProblemList.txt	Tue Dec 12 21:46:06 2017 -0500
@@ -257,7 +257,6 @@
 tools/pack200/CommandLineTests.java                             8059906 generic-all
 
 tools/launcher/FXLauncherTest.java                              8068049 linux-all,macosx-all
-tools/launcher/TestXcheckJNIWarnings.java                       8190984 solaris-all
 
 tools/jimage/JImageExtractTest.java                             8170120 generic-all
 tools/jimage/JImageListTest.java                                8170120 generic-all