-
Bug
-
Resolution: Fixed
-
P4
-
1.2.2, 1.3.0
-
kestrel
-
sparc
-
solaris_2.5, solaris_2.6
Name: saC57035 Date: 04/22/99
In the JDK releases prior to 1.2 method setURL(URL u, String protocol,
String host, int port, String file, String ref) was indeed able to
change the protocol value of a given URL. Since JDK 1.2 this method
just ignores the protocol value, leaving URL protocol as it was.
I understand the reasons behind this change of behaviour, since
URLStreamHandler should work with one particular type of protocol
only. However, specs need to reflect this.
======================================================================
- duplicates
-
JDK-4268592 Doc for java.net.URLStreamHandler is silent about the protocol name changing
- Closed