提交 696bbff9 编写于 作者: A alanb

6938230: (so) SocketAdaptor.close() does not translate IOException resulting in Error

Reviewed-by: chegar
上级 ab7466b3
......@@ -144,11 +144,7 @@ public class ServerSocketAdaptor // package-private
}
public void close() throws IOException {
try {
ssc.close();
} catch (Exception x) {
Net.translateException(x);
}
ssc.close();
}
public ServerSocketChannel getChannel() {
......
......@@ -404,11 +404,7 @@ public class SocketAdaptor
}
public void close() throws IOException {
try {
sc.close();
} catch (Exception x) {
Net.translateToSocketException(x);
}
sc.close();
}
public void shutdownInput() throws IOException {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册