changeset 48664:993b004ab38f

8190984: tools/launcher/TestXcheckJNIWarnings.java WARNING was found in the output Reviewed-by: dholmes, mchung
author bchristi
date Tue, 12 Dec 2017 21:46:06 -0500
parents 10ec0c43cf1d
children 39a84de6afd6
files src/java.base/share/native/libjava/System.c test/jdk/ProblemList.txt
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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