--- a/jdk/test/java/net/Socket/ShutdownBoth.java Tue Jul 20 10:41:50 2010 -0400
+++ b/jdk/test/java/net/Socket/ShutdownBoth.java Wed Jul 21 13:29:26 2010 +0100
@@ -36,12 +36,14 @@
Socket s1 = new Socket(ss.getInetAddress(), ss.getLocalPort());
Socket s2 = ss.accept();
- s1.shutdownInput();
- s1.shutdownOutput(); // failed b55
-
- s1.close();
- s2.close();
- ss.close();
+ try {
+ s1.shutdownInput();
+ s1.shutdownOutput(); // failed b55
+ } finally {
+ s1.close();
+ s2.close();
+ ss.close();
+ }
}
}