diff options
author | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-07 15:42:07 +0000 |
---|---|---|
committer | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-07 15:42:07 +0000 |
commit | cfd7afc56e260bfe9feb1fed2c93e3a2797892d8 (patch) | |
tree | 65ca93ecd415a7b09e86f446357a870a39da9025 /libjava/java/net | |
parent | 8c7c9e90bad2ffe0b011ebe6c4330f387572a761 (diff) | |
download | gcc-cfd7afc56e260bfe9feb1fed2c93e3a2797892d8.tar.gz |
2006-04-07 Andrew Haley <aph@redhat.com>
* java/net/InetAddress.java: Throw an UnknownHostException if
lookup fails.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112754 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/net')
-rw-r--r-- | libjava/java/net/InetAddress.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libjava/java/net/InetAddress.java b/libjava/java/net/InetAddress.java index 0a9831a4ab6..6ca72fe3e24 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 |