7091369: DatagramSocket/Limit.java failing on 8 and 7u2
Reviewed-by: chegar, alanb
--- 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)