7091369: DatagramSocket/Limit.java failing on 8 and 7u2

Reviewed-by: chegar, alanb
This commit is contained in:
Michael McMahon 2011-09-19 15:14:17 +01:00
parent 5b7643e258
commit b88865d91f

View File

@ -68,7 +68,12 @@ class TwoStacksPlainDatagramSocketImpl extends AbstractPlainDatagramSocketImpl
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)