summaryrefslogtreecommitdiff
path: root/java/net/InetAddress.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/net/InetAddress.java')
-rw-r--r--java/net/InetAddress.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/net/InetAddress.java b/java/net/InetAddress.java
index 7277331bb..ce65bc773 100644
--- a/java/net/InetAddress.java
+++ b/java/net/InetAddress.java
@@ -651,9 +651,9 @@ public class InetAddress implements Serializable
/*
* Needed for serialization
*/
- private void readResolve() throws ObjectStreamException
+ private Object readResolve() throws ObjectStreamException
{
- // FIXME: implement this
+ return new Inet4Address(addr, hostName);
}
private void readObject(ObjectInputStream ois)