< prev index next >

test/java/net/CookieHandler/TestHttpCookie.java

Print this page
rev 1562 : 6901170: HttpCookie parsing of version and max-age mis-handled
Summary: Accept single quotes in cookies and better exception handling in CookieManager
Reviewed-by: chegar

@@ -23,10 +23,11 @@
 
 /**
  * @test
  * @summary Unit test for java.net.HttpCookie
  * @bug 6244040 6277796 6277801 6277808 6294071
+ * @bug 6244040 6277796 6277801 6277808 6294071 6901170
  * @author Edward Wang
  */
 
 import java.net.HttpCookie;
 import java.util.List;

@@ -321,10 +322,13 @@
         .n("CUSTOMER").v("WILE_E_COYOTE").p("/").ver(0);
 
         // bug 6277801
         test("set-cookie: CUSTOMER=WILE_E_COYOTE; path=/; expires=Wednesday, 09-Nov-99 23:12:40 GMT; path=\"/acme\"")
         .n("CUSTOMER").v("WILE_E_COYOTE").p("/").ver(0);
+
+        // bug 6901170
+        test("set-cookie: CUSTOMER=WILE_E_COYOTE; version='1'").ver(1);
     }
 
     static void misc() {
         header("Test equals()");
 
< prev index next >