aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/net
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2006-04-07 15:42:07 +0000
committerAndrew Haley <aph@gcc.gnu.org>2006-04-07 15:42:07 +0000
commit544c479db3108ec43654e2cea7fe1f0046df83ef (patch)
tree65ca93ecd415a7b09e86f446357a870a39da9025 /libjava/java/net
parent44cfd8f6d4899c497b9218d68db636bc88a61bf5 (diff)
downloadgcc-544c479db3108ec43654e2cea7fe1f0046df83ef.zip
gcc-544c479db3108ec43654e2cea7fe1f0046df83ef.tar.gz
gcc-544c479db3108ec43654e2cea7fe1f0046df83ef.tar.bz2
InetAddress.java: Throw an UnknownHostException if lookup fails.
2006-04-07 Andrew Haley <aph@redhat.com> * java/net/InetAddress.java: Throw an UnknownHostException if lookup fails. From-SVN: r112754
Diffstat (limited to 'libjava/java/net')
-rw-r--r--libjava/java/net/InetAddress.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/libjava/java/net/InetAddress.java b/libjava/java/net/InetAddress.java
index 0a9831a..6ca72fe 100644
--- a/libjava/java/net/InetAddress.java
+++ b/libjava/java/net/InetAddress.java
@@ -742,6 +742,9 @@ public class InetAddress implements Serializable
}
catch (Exception ex)
{
+ UnknownHostException failure = new UnknownHostException(hostname);
+ failure.initCause(ex);
+ throw failure;
}
}
else