+2006-10-02 Gary Benson <gbenson@redhat.com>
+
+ * java/net/InetAddress.java
+ (checkConnect): Reinstated.
+ (loopbackAddress): Ensure initialized from non-null object.
+
2006-09-30 Keith Seitz <keiths@redhat.com>
* include/java-interp.h (prepared): Change type to pc_t.
try
{
LOCALHOST = getByAddress("localhost", new byte[] {127, 0, 0, 1});
+ // Some soon-to-be-removed native code synchronizes on this.
+ loopbackAddress = LOCALHOST;
}
catch (UnknownHostException e)
{
static native String getLocalHostname();
// Some soon-to-be-removed native code synchronizes on this.
- static InetAddress loopbackAddress = LOCALHOST;
+ static InetAddress loopbackAddress;
// Some soon-to-be-removed code uses this old and broken method.
InetAddress(byte[] ipaddr, String hostname)
family = getFamily(ipaddr);
}
- // Some soon-to-be-removed native code uses this old method.
+ // Some soon-to-be-removed native code uses these old methods.
private static InetAddress[] allocArray (int count)
{
return new InetAddress [count];
}
+ private static SecurityException checkConnect (String hostname)
+ {
+ return null;
+ }
}