-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.4.0
-
sparc
-
solaris_2.6
Name: dfR10049 Date: 08/21/2000
java.net.URL ctor URL(URL context, String spec) creates different url
in jdk1.3 and jdk1.4.
See Test.java bellow:
---------------------------------
import java.net.*;
public class Test {
public static void main (String args[]){
try {
URL url = new URL(new URL("http://host/file?x=1&y=0"), "#ref");
System.out.println(url.toString());
} catch (Exception e) {
System.out.println(" " + e);
}
}
}
---------------------------------
Output from jdk1.3:
http://host/file?x=1&y=0#ref
Output from jdk1.4:
http://host/file#ref
======================================================================
- duplicates
-
JDK-4407348 JCK13a /api/java_net/URL/descriptions.html URL0107 URL0108 sparc-s7 intel-s6
- Closed