diff options
author | gary <gary@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-02 10:54:43 +0000 |
---|---|---|
committer | gary <gary@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-02 10:54:43 +0000 |
commit | df2f36b7157c61ab303f9fd7a2304a887b21a56b (patch) | |
tree | faae9c4f450f3b428a2307033612d43570d10842 /libjava/java/net | |
parent | d11653b7e8b7cee3f69316e392f3725490422188 (diff) | |
download | gcc-df2f36b7157c61ab303f9fd7a2304a887b21a56b.tar.gz |
2006-10-02 Gary Benson <gbenson@redhat.com>
* java/net/InetAddress.java
(checkConnect): Reinstated.
(loopbackAddress): Ensure initialized from non-null object.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117370 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/net')
-rw-r--r-- | libjava/java/net/InetAddress.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libjava/java/net/InetAddress.java b/libjava/java/net/InetAddress.java index bef9a6ecf19..06e9658fbf6 100644 --- a/libjava/java/net/InetAddress.java +++ b/libjava/java/net/InetAddress.java @@ -101,6 +101,8 @@ public class InetAddress implements Serializable 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) { @@ -793,7 +795,7 @@ public class InetAddress implements Serializable 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) @@ -805,9 +807,13 @@ public class InetAddress implements Serializable 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; + } } |