--- old/src/java.base/share/classes/java/net/URLPermission.java 2018-12-06 17:25:42.637294740 -0500 +++ new/src/java.base/share/classes/java/net/URLPermission.java 2018-12-06 17:25:42.461293867 -0500 @@ -533,11 +533,11 @@ String thishost = this.p.hostname(); String thathost = that.p.hostname(); - if (p.wildcard() && thishost.equals("")) { + if (p.wildcard() && thishost.isEmpty()) { // this "*" implies all others return true; } - if (that.p.wildcard() && thathost.equals("")) { + if (that.p.wildcard() && thathost.isEmpty()) { // that "*" can only be implied by this "*" return false; }