6938230: (so) SocketAdaptor.close() does not translate IOException resulting in Error
authoralanb
Fri, 11 Jun 2010 14:47:22 +0100
changeset 5784 e565c553e9fc
parent 5783 a330d1984034
child 5785 5dfabe612d10
child 6856 533f4ad71f88
6938230: (so) SocketAdaptor.close() does not translate IOException resulting in Error Reviewed-by: chegar
jdk/src/share/classes/sun/nio/ch/ServerSocketAdaptor.java
jdk/src/share/classes/sun/nio/ch/SocketAdaptor.java
--- 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 {