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

Reviewed-by: chegar
This commit is contained in:
Alan Bateman 2010-06-11 14:47:22 +01:00
parent 82adf1a224
commit 356e978bce
2 changed files with 2 additions and 10 deletions

View File

@ -144,11 +144,7 @@ public class ServerSocketAdaptor // package-private
}
public void close() throws IOException {
try {
ssc.close();
} catch (Exception x) {
Net.translateException(x);
}
}
public ServerSocketChannel getChannel() {

View File

@ -404,11 +404,7 @@ public class SocketAdaptor
}
public void close() throws IOException {
try {
sc.close();
} catch (Exception x) {
Net.translateToSocketException(x);
}
}
public void shutdownInput() throws IOException {