6938230: (so) SocketAdaptor.close() does not translate IOException resulting in Error
Reviewed-by: chegar
--- a/jdk/src/share/classes/sun/nio/ch/ServerSocketAdaptor.java Fri Jun 11 14:31:26 2010 +0100
+++ b/jdk/src/share/classes/sun/nio/ch/ServerSocketAdaptor.java Fri Jun 11 14:47:22 2010 +0100
@@ -144,11 +144,7 @@
}
public void close() throws IOException {
- try {
- ssc.close();
- } catch (Exception x) {
- Net.translateException(x);
- }
+ ssc.close();
}
public ServerSocketChannel getChannel() {
--- a/jdk/src/share/classes/sun/nio/ch/SocketAdaptor.java Fri Jun 11 14:31:26 2010 +0100
+++ b/jdk/src/share/classes/sun/nio/ch/SocketAdaptor.java Fri Jun 11 14:47:22 2010 +0100
@@ -404,11 +404,7 @@
}
public void close() throws IOException {
- try {
- sc.close();
- } catch (Exception x) {
- Net.translateToSocketException(x);
- }
+ sc.close();
}
public void shutdownInput() throws IOException {