jdk/src/share/classes/java/net/InetAddress.java
changeset 20821 e0d0a585aa49
parent 16870 f35b2bd19761
child 20831 96cf18811858
--- a/jdk/src/share/classes/java/net/InetAddress.java	Tue Jul 16 21:11:54 2013 +0400
+++ b/jdk/src/share/classes/java/net/InetAddress.java	Thu Jul 18 18:52:14 2013 +0100
@@ -213,6 +213,13 @@
             this.family = family;
         }
 
+        void init(String hostName, int family) {
+            this.hostName = hostName;
+            if (family != -1) {
+                this.family = family;
+            }
+        }
+
         String hostName;
 
         String getHostName() {
@@ -240,7 +247,7 @@
     }
 
     /* Used to store the serializable fields of InetAddress */
-    private final transient InetAddressHolder holder;
+    final transient InetAddressHolder holder;
 
     InetAddressHolder holder() {
         return holder;