changeset 2582:bb0b32ffefe9

6966846: Incorrect assertion in java.net.Inet6Address.readObject Reviewed-by: michaelm
author chegar
date Mon, 12 Jul 2010 18:18:13 +0100
parents 1371a2d5f3a8
children d3fa95d0710c ddf825161d2d
files src/share/classes/java/net/Inet6Address.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/net/Inet6Address.java	Mon Jul 12 18:16:35 2010 +0100
+++ b/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) {}