changeset 52902 | e3398b2e1ab0 |
parent 47216 | 71c04702a3d5 |
--- a/src/java.base/windows/classes/sun/net/www/protocol/jar/JarFileFactory.java Fri Dec 07 17:11:17 2018 +0100 +++ b/src/java.base/windows/classes/sun/net/www/protocol/jar/JarFileFactory.java Fri Dec 07 11:51:17 2018 -0500 @@ -76,7 +76,7 @@ // Deal with UNC pathnames specially. See 4180841 String host = url.getHost(); - if (host != null && !host.equals("") && + if (host != null && !host.isEmpty() && !host.equalsIgnoreCase("localhost")) { url = new URL("file", "", "//" + host + url.getPath());