changeset 11989:ec36155c8517

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 f5d53de20cb3
children 6cb0106507eb
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	Tue Aug 16 17:05:00 2016 +0530
+++ b/src/share/classes/java/net/URL.java	Tue Aug 30 02:38:21 2016 +0100
@@ -1364,9 +1364,6 @@
                 path = file;
         }
 
-        if (port == -1) {
-            port = 0;
-        }
         // Set the object fields.
         this.protocol = protocol;
         this.host = host;