diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 4944a6595e48cbed2e89af8c1dc3a064f13ade5d..d52d8ab8c3f2da3239734369f406962d274c7084 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2006-04-07 Andrew Haley <aph@redhat.com> + + * java/net/InetAddress.java: Throw an UnknownHostException if + lookup fails. + 2006-04-05 Tom Tromey <tromey@redhat.com> PR libgcj/26625: diff --git a/libjava/java/net/InetAddress.java b/libjava/java/net/InetAddress.java index 0a9831a4ab69b540a28507fc1ff776f6b7316c48..6ca72fe3e244fcb059829b643d7c0f4952100b74 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