mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-02 08:40:26 +08:00
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:
parent
44cfd8f6d4
commit
544c479db3
@ -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:
|
||||
|
@ -742,6 +742,9 @@ public class InetAddress implements Serializable
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
UnknownHostException failure = new UnknownHostException(hostname);
|
||||
failure.initCause(ex);
|
||||
throw failure;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user