changeset 4592:e3d78fe803d4

7091369: DatagramSocket/Limit.java failing on 8 and 7u2 Reviewed-by: chegar, alanb
author michaelm
date Mon, 19 Sep 2011 15:14:17 +0100
parents 418628a08ae7
children 8fe6d94683af
files src/windows/classes/java/net/TwoStacksPlainDatagramSocketImpl.java
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/classes/java/net/TwoStacksPlainDatagramSocketImpl.java	Sun Sep 18 18:14:07 2011 -0700
+++ b/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)