6966846: Incorrect assertion in java.net.Inet6Address.readObject
authorchegar
Mon, 12 Jul 2010 18:18:13 +0100
changeset 6004 f88fd15b64b9
parent 6003 6aed6c9c974d
child 6005 f9e6c98d4ee3
child 6006 91227f996b53
6966846: Incorrect assertion in java.net.Inet6Address.readObject Reviewed-by: michaelm
jdk/src/share/classes/java/net/Inet6Address.java
--- a/jdk/src/share/classes/java/net/Inet6Address.java	Mon Jul 12 18:16:35 2010 +0100
+++ b/jdk/src/share/classes/java/net/Inet6Address.java	Mon Jul 12 18:18:13 2010 +0100
@@ -427,8 +427,9 @@
                     try {
                         scope_id = deriveNumericScope (scope_ifname);
                     } catch (UnknownHostException e) {
-                        // should not happen
-                        assert false;
+                        // typically should not happen, but it may be that
+                        // the machine being used for deserialization has
+                        // the same interface name but without IPv6 configured.
                     }
                 }
             } catch (SocketException e) {}