8161228: URL objects with custom protocol handlers have port changed after deserializing
Reviewed-by: chegar, rriggs, coffeys
This commit is contained in:
parent
8861efc7b5
commit
f436ae7a54
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user