jdk/src/solaris/native/java/net/Inet4AddressImpl.c
changeset 20857 734dc47ee277
parent 20741 6eb501508669
child 20863 2cdfa2825d21
--- a/jdk/src/solaris/native/java/net/Inet4AddressImpl.c	Tue Oct 15 20:47:21 2013 +0100
+++ b/jdk/src/solaris/native/java/net/Inet4AddressImpl.c	Tue Oct 15 16:45:04 2013 -0700
@@ -178,8 +178,7 @@
 
     if (error) {
         /* report error */
-        JNU_ThrowByName(env, JNU_JAVANETPKG "UnknownHostException",
-                        (char *)hostname);
+        ThrowUnknownHostExceptionWithGaiError(env, hostname, error);
         JNU_ReleaseStringPlatformChars(env, host, hostname);
         return NULL;
     } else {