7091369: DatagramSocket/Limit.java failing on 8 and 7u2
authormichaelm
Mon, 19 Sep 2011 15:14:17 +0100
changeset 10599 79e95f5aaffb
parent 10598 efd29b4b3e67
child 10600 558b97746312
7091369: DatagramSocket/Limit.java failing on 8 and 7u2 Reviewed-by: chegar, alanb
jdk/src/windows/classes/java/net/TwoStacksPlainDatagramSocketImpl.java
--- a/jdk/src/windows/classes/java/net/TwoStacksPlainDatagramSocketImpl.java	Sun Sep 18 18:14:07 2011 -0700
+++ b/jdk/src/windows/classes/java/net/TwoStacksPlainDatagramSocketImpl.java	Mon Sep 19 15:14:17 2011 +0100
@@ -68,7 +68,12 @@
 
     protected synchronized void create() throws SocketException {
         fd1 = new FileDescriptor();
-        super.create();
+        try {
+            super.create();
+        } catch (IOException e) {
+            fd1 = null;
+            throw e;
+        }
     }
 
     protected synchronized void bind(int lport, InetAddress laddr)