--- a/test/jdk/java/net/Socket/UrgentDataTest.java Tue Jan 15 15:59:47 2019 -0800
+++ b/test/jdk/java/net/Socket/UrgentDataTest.java Wed Feb 27 13:34:40 2019 -0800
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2018, 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
@@ -57,7 +57,7 @@
test.listener = new ServerSocket (0);
test.isClient = true;
test.isServer = true;
- test.clHost = "127.0.0.1";
+ test.clHost = InetAddress.getLoopbackAddress().getHostAddress();
test.clPort = test.listener.getLocalPort();
test.run();
} else if (args[0].equals ("-server")) {