8028725: [Parfait] warnings from b116 for jdk.src.solaris.native.java.net: JNI pending exceptions
Reviewed-by: alanb
--- a/jdk/src/solaris/native/java/net/Inet6AddressImpl.c Tue Feb 04 10:00:24 2014 +0100
+++ b/jdk/src/solaris/native/java/net/Inet6AddressImpl.c Tue Feb 04 11:31:27 2014 +0000
@@ -196,6 +196,7 @@
}
name = (*env)->NewStringUTF(env, hostname);
+ CHECK_NULL(name);
/* Iterate over the interfaces, and total up the number of IPv4 and IPv6
* addresses we have. Also keep a count of loopback addresses. We need to
@@ -548,6 +549,7 @@
if (!error) {
ret = (*env)->NewStringUTF(env, host);
+ CHECK_NULL(ret);
}
#endif /* AF_INET6 */
--- a/jdk/src/windows/native/java/net/Inet6AddressImpl.c Tue Feb 04 10:00:24 2014 +0100
+++ b/jdk/src/windows/native/java/net/Inet6AddressImpl.c Tue Feb 04 11:31:27 2014 +0000
@@ -347,6 +347,7 @@
if (!error) {
ret = (*env)->NewStringUTF(env, host);
+ CHECK_NULL(ret);
}
if (ret == NULL) {