]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2006-10-02 Gary Benson <gbenson@redhat.com>
authorGary Benson <gbenson@redhat.com>
Mon, 2 Oct 2006 10:54:43 +0000 (10:54 +0000)
committerGary Benson <gary@gcc.gnu.org>
Mon, 2 Oct 2006 10:54:43 +0000 (10:54 +0000)
* java/net/InetAddress.java
(checkConnect): Reinstated.
(loopbackAddress): Ensure initialized from non-null object.

From-SVN: r117370

libjava/ChangeLog
libjava/java/net/InetAddress.java

index 177ac48d295cbca26ca639529e09564198f13cee..21cbc61d01314a2c5b478360bedf0970d50a6c7b 100644 (file)
@@ -1,3 +1,9 @@
+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.
index bef9a6ecf19ae37c4408db019c34599c53e8c178..06e9658fbf6b89ce4b4057a8d0fddd51d11a5b67 100644 (file)
@@ -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;
+  }
 }