--- a/jdk/test/java/net/Socket/asyncClose/Race.java Tue Apr 16 12:51:22 2013 +0100
+++ b/jdk/test/java/net/Socket/asyncClose/Race.java Tue Apr 16 13:26:30 2013 +0100
@@ -23,8 +23,8 @@
/*
* @test
- * @bug 8006395
- * @summary Race in async socket close on Linux
+ * @bug 8006395 8012244
+ * @summary Tests racing code that reads and closes a Socket
*/
import java.io.InputStream;
@@ -58,7 +58,7 @@
Thread.sleep(50);
} catch (Exception x) {
if (!(x instanceof SocketException
- && x.getMessage().equals("Socket closed")))
+ && x.getMessage().equalsIgnoreCase("socket closed")))
x.printStackTrace();
// ok, expect Socket closed
}