This issue fixes tests to use the loopback address whenever possible. It also fixes some safe publishing issues, or add diagnostics in some of the tests.
Adding diagnostic:
test/jdk/java/net/CookieHandler/CookieManagerTest.java
test/jdk/java/net/Socket/HttpProxy.java
test/jdk/java/net/Socket/NullHost.java
Fixing use of wildcard:
test/jdk/sun/net/www/http/KeepAliveCache/B5045306.java
test/jdk/sun/net/www/protocol/https/HttpsClient/ServerIdentityTest.java
test/jdk/sun/net/www/protocol/https/HttpsURLConnection/DNSIdentities.java
test/jdk/sun/net/www/protocol/https/HttpsURLConnection/IPAddressDNSIdentities.java
test/jdk/sun/net/www/protocol/https/HttpsURLConnection/IPAddressIPIdentities.java
test/jdk/sun/net/www/protocol/https/HttpsURLConnection/IPIdentities.java
test/jdk/sun/net/www/protocol/https/HttpsURLConnection/Identities.java
test/jdk/sun/net/www/protocol/https/HttpsURLConnection/ImpactOnSNI.java
test/jdk/sun/net/www/protocol/https/NewImpl/JavaxHostnameVerifier.java
test/jdk/sun/net/www/protocol/jar/B4957695.java