OSDN Git Service

2006-10-03 Gary Benson <gbenson@redhat.com>
authorgary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Oct 2006 10:27:28 +0000 (10:27 +0000)
committergary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Oct 2006 10:27:28 +0000 (10:27 +0000)
* java/net/InetAddress.java
(<clinit>): Reorder the static initializers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117394 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 21cbc61..47a781f 100644 (file)
@@ -1,3 +1,8 @@
+2006-10-03  Gary Benson  <gbenson@redhat.com>
+
+       * java/net/InetAddress.java
+       (<clinit>): Reorder the static initializers.
+
 2006-10-02  Gary Benson  <gbenson@redhat.com>
 
        * java/net/InetAddress.java
index 06e9658..640750d 100644 (file)
@@ -66,6 +66,24 @@ public class InetAddress implements Serializable
   private static final long serialVersionUID = 3286316764910316507L;
 
   /**
+   * Stores static localhost address object.
+   */
+  static InetAddress LOCALHOST;
+  static
+  {
+    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)
+      {
+       throw new RuntimeException("should never happen", e);
+      }
+  }    
+
+  /**
    * Dummy InetAddress, used to bind socket to any (all) network interfaces.
    */
   static InetAddress ANY_IF;
@@ -93,24 +111,6 @@ public class InetAddress implements Serializable
   }
   
   /**
-   * Stores static localhost address object.
-   */
-  static InetAddress LOCALHOST;
-  static
-  {
-    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)
-      {
-       throw new RuntimeException("should never happen", e);
-      }
-  }    
-
-  /**
    * The Serialized Form specifies that an int 'address' is saved/restored.
    * This class uses a byte array internally so we'll just do the conversion
    * at serialization time and leave the rest of the algorithm as is.