--- 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;