--- old/src/java.base/share/classes/sun/net/www/protocol/jar/URLJarFile.java 2018-12-06 17:52:58.913408595 -0500 +++ new/src/java.base/share/classes/sun/net/www/protocol/jar/URLJarFile.java 2018-12-06 17:52:58.749407782 -0500 @@ -111,7 +111,7 @@ * 'file:' URLs can be accessible through ftp. */ String host = url.getHost(); - if (host == null || host.equals("") || host.equals("~") || + if (host == null || host.isEmpty() || host.equals("~") || host.equalsIgnoreCase("localhost")) return true; }