jdk/test/java/net/URI/Test.java
changeset 5612 c0d1673e1ca6
parent 2 90ce3da70b43
child 5627 e636ac7a63a4
--- a/jdk/test/java/net/URI/Test.java	Thu May 20 13:57:58 2010 -0700
+++ b/jdk/test/java/net/URI/Test.java	Fri May 21 07:29:48 2010 +0100
@@ -1091,6 +1091,7 @@
         test("").p("").sp("").z();
 
 
+
         header("Emptiness");
 
         // Components that may be empty
@@ -1321,6 +1322,11 @@
             .sp("//host/foo%20bar/a/b/c/resolve").s("http")
             .pd("/foo bar/a/b/c/resolve").h("host")
             .p("/foo%20bar/a/b/c/resolve").z();
+
+        // 6773270: java.net.URI fails to escape u0000
+        test("s", "a", "/\u0000", null)
+            .s("s").p("/%00").h("a")
+            .ta("s://a/%00").z();
     }