changeset 8590:dd4ddb848abc

8161228: URL objects with custom protocol handlers have port changed after deserializing Reviewed-by: chegar, rriggs, coffeys
author msheppar
date Tue, 30 Aug 2016 02:38:21 +0100
parents 27e66e58150e
children aa4bbea4a859
files src/share/classes/java/net/URL.java
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/net/URL.java	Thu Oct 20 17:50:47 2016 +0100
+++ b/src/share/classes/java/net/URL.java	Tue Aug 30 02:38:21 2016 +0100
@@ -1391,9 +1391,6 @@
                 path = file;
         }
 
-        if (port == -1) {
-            port = 0;
-        }
         // Set the object fields.
         this.protocol = protocol;
         this.host = host;