提交 2b5a9b0f 编写于 作者: C chegar

6966846: Incorrect assertion in java.net.Inet6Address.readObject

Reviewed-by: michaelm
上级 f78b8c44
...@@ -427,8 +427,9 @@ class Inet6Address extends InetAddress { ...@@ -427,8 +427,9 @@ class Inet6Address extends InetAddress {
try { try {
scope_id = deriveNumericScope (scope_ifname); scope_id = deriveNumericScope (scope_ifname);
} catch (UnknownHostException e) { } catch (UnknownHostException e) {
// should not happen // typically should not happen, but it may be that
assert false; // the machine being used for deserialization has
// the same interface name but without IPv6 configured.
} }
} }
} catch (SocketException e) {} } catch (SocketException e) {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册