changeset 4649:1ffe9f7251e3

7091369: DatagramSocket/Limit.java failing on 8 and 7u2 Reviewed-by: michaelm, alanb
author chegar
date Mon, 10 Oct 2011 14:34:24 +0100
parents 4808f600237e
children 02de5cdbef21
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	Mon Sep 26 19:47:50 2011 -0400
+++ b/src/windows/classes/java/net/TwoStacksPlainDatagramSocketImpl.java	Mon Oct 10 14:34:24 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)