--- a/test/jdk/java/net/Socket/asyncClose/Socket_getOutputStream_write.java Wed May 15 19:34:34 2019 +0100
+++ b/test/jdk/java/net/Socket/asyncClose/Socket_getOutputStream_write.java Wed May 15 19:47:28 2019 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -65,8 +65,8 @@
public AsyncCloseTest go() {
try {
- ServerSocket ss = new ServerSocket(0);
InetAddress lh = InetAddress.getLocalHost();
+ ServerSocket ss = new ServerSocket(0, 0, lh);
s.connect( new InetSocketAddress(lh, ss.getLocalPort()) );
Socket s2 = ss.accept();
Thread thr = new Thread(this);