changeset 22640:58db7b59eaf6

8028725: [Parfait] warnings from b116 for jdk.src.solaris.native.java.net: JNI pending exceptions Reviewed-by: alanb
author michaelm
date Tue, 04 Feb 2014 11:31:27 +0000
parents 37f4508257fe
children e47f8892133e
files jdk/src/solaris/native/java/net/Inet6AddressImpl.c jdk/src/windows/native/java/net/Inet6AddressImpl.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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) {