--- old/src/java.base/windows/classes/sun/net/www/protocol/jar/JarFileFactory.java 2018-12-06 17:25:55.797359997 -0500 +++ new/src/java.base/windows/classes/sun/net/www/protocol/jar/JarFileFactory.java 2018-12-06 17:25:55.625359144 -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());