test/jdk/java/net/InetAddress/CheckJNI.java
changeset 55649 ad8e3b295615
parent 54989 d0c73c8f35ca
--- a/test/jdk/java/net/InetAddress/CheckJNI.java	Wed Jul 10 16:45:28 2019 +0000
+++ b/test/jdk/java/net/InetAddress/CheckJNI.java	Wed Jul 10 22:33:23 2019 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
@@ -74,7 +74,7 @@
     }
 
     static void testSocket(InetAddress ia) throws Exception {
-        ServerSocket server = new ServerSocket(0);
+        ServerSocket server = new ServerSocket(0, 0, ia);
         Socket s = new Socket(ia, server.getLocalPort());
         s.close();
         server.close();