diff --git a/src/share/classes/java/net/URL.java b/src/share/classes/java/net/URL.java index a6cbcbc4f9d9a0a3c2c90b545d77a211b674b624..919825adbb62c0067d259a36ca12359e133e97f2 100644 --- a/src/share/classes/java/net/URL.java +++ b/src/share/classes/java/net/URL.java @@ -1364,9 +1364,6 @@ public final class URL implements java.io.Serializable { path = file; } - if (port == -1) { - port = 0; - } // Set the object fields. this.protocol = protocol; this.host = host;