Commit 544c479d by Andrew Haley Committed by Andrew Haley

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
parent 44cfd8f6
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> 2006-04-05 Tom Tromey <tromey@redhat.com>
PR libgcj/26625: PR libgcj/26625:
......
...@@ -742,6 +742,9 @@ public class InetAddress implements Serializable ...@@ -742,6 +742,9 @@ public class InetAddress implements Serializable
} }
catch (Exception ex) catch (Exception ex)
{ {
UnknownHostException failure = new UnknownHostException(hostname);
failure.initCause(ex);
throw failure;
} }
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment