src/java.base/share/classes/sun/security/provider/PolicyFile.java
changeset 52902 e3398b2e1ab0
parent 52427 3c6aa484536c
child 54024 e445608fce9b
equal deleted inserted replaced
52901:3ba9ff4d4aaf 52902:e3398b2e1ab0
  1606                 }
  1606                 }
  1607             }
  1607             }
  1608             if (u.getProtocol().equals("file")) {
  1608             if (u.getProtocol().equals("file")) {
  1609                 boolean isLocalFile = false;
  1609                 boolean isLocalFile = false;
  1610                 String host = u.getHost();
  1610                 String host = u.getHost();
  1611                 isLocalFile = (host == null || host.equals("") ||
  1611                 isLocalFile = (host == null || host.isEmpty() ||
  1612                     host.equals("~") || host.equalsIgnoreCase("localhost"));
  1612                     host.equals("~") || host.equalsIgnoreCase("localhost"));
  1613 
  1613 
  1614                 if (isLocalFile) {
  1614                 if (isLocalFile) {
  1615                     path = u.getFile().replace('/', File.separatorChar);
  1615                     path = u.getFile().replace('/', File.separatorChar);
  1616                     path = ParseUtil.decode(path);
  1616                     path = ParseUtil.decode(path);