test/java/net/URI/Test.java
Print this page
*** 21,31 ****
* questions.
*/
/* @test
* @summary Unit test for java.net.URI
! * @bug 4464135 4505046 4503239 4438319 4991359 4866303 7023363
* @author Mark Reinhold
*/
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
--- 21,31 ----
* questions.
*/
/* @test
* @summary Unit test for java.net.URI
! * @bug 4464135 4505046 4503239 4438319 4991359 4866303 7023363 7041800
* @author Mark Reinhold
*/
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
*** 1426,1435 ****
--- 1426,1437 ----
gt(r, new URI("reg://some%20registry/b/c/D?q#f"));
eq(s, new URI("hTtP://jag:cafebabe@Java.Sun.COM:94/b/c/d?q#f"));
gt(s, new URI("http://jag:CafeBabe@java.sun.com:94/b/c/d?q#f"));
lt(s, new URI("http://jag:cafebabe@java.sun.com:94/b/c/d?r#f"));
lt(s, new URI("http://jag:cafebabe@java.sun.com:94/b/c/d?q#g"));
+ eq(new URI("http://host/a%00bcd"), new URI("http://host/a%00bcd"));
+ ne(new URI("http://host/a%00bcd"), new URI("http://host/aZ00bcd"));
lt("p", "s:p");
lt("s:p", "T:p");
lt("S:p", "t:p");
lt("s:/p", "s:p");