2005-01-09 Michael Koch <konqueror@gmx.de>
PR libgcj/17069
* java/net/InetAddress.java (getLocalHost):
Throw UnknownHostException if local hostname cannot be determined.
From-SVN: r93115
+2005-01-09 Michael Koch <konqueror@gmx.de>
+
+ PR libgcj/17069
+ * java/net/InetAddress.java (getLocalHost):
+ Throw UnknownHostException if local hostname cannot be determined.
+
2005-01-06 Tom Tromey <tromey@redhat.com>
* java/lang/ClassLoader.java (findClass): Fixed documentation.
}
}
- if (hostname != null)
+ if (hostname != null && hostname.length() != 0)
{
try
{
{
}
}
+ else
+ throw new UnknownHostException();
if (localhost == null)
localhost = new InetAddress (loopbackAddress, "localhost");