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
This commit is contained in:
Andrew Haley 2006-04-07 15:42:07 +00:00 committed by Andrew Haley
parent 44cfd8f6d4
commit 544c479db3
2 changed files with 8 additions and 0 deletions

View File

@ -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:

View File

@ -742,6 +742,9 @@ public class InetAddress implements Serializable
}
catch (Exception ex)
{
UnknownHostException failure = new UnknownHostException(hostname);
failure.initCause(ex);
throw failure;
}
}
else