8161228: URL objects with custom protocol handlers have port changed after deserializing

Reviewed-by: chegar, rriggs, coffeys
This commit is contained in:
Mark Sheppard 2016-08-12 10:37:15 +01:00
parent 8861efc7b5
commit f436ae7a54

View File

@ -1556,9 +1556,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;