--- old/src/java.base/windows/classes/sun/net/www/protocol/file/Handler.java 2018-12-06 17:53:04.973438645 -0500 +++ new/src/java.base/windows/classes/sun/net/www/protocol/file/Handler.java 2018-12-06 17:53:04.805437812 -0500 @@ -83,7 +83,7 @@ path = path.replace('/', '\\'); path = path.replace('|', ':'); - if ((host == null) || host.equals("") || + if ((host == null) || host.isEmpty() || host.equalsIgnoreCase("localhost") || host.equals("~")) { return createFileURLConnection(url, new File(path));