The test/jdk/java/net/CookieHandler/B6644726.java test has started failing with the following exception:
java.lang.RuntimeException: Should have 5 cookies. Got only 4, expires probably didn't parse correctly
at B6644726.fail(B6644726.java:209)
at B6644726.testCookieStore(B6644726.java:67)
at B6644726.main(B6644726.java:35)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
at java.base/java.lang.Thread.run(Thread.java:1474)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Should have 5 cookies. Got only 4, expires probably didn't parse correctly
A brief look at the test code suggests that it has hard coded cookie expiry date which happens to be today (August 19th 2025):
// Then some alternate expires format
lst.add("myCookie2=bar; path=/dir; expires=Tue, 19 Aug 2025 16:00:00 GMT");
lst.add("myCookie3=test; path=/dir; expires=Tue Aug 19 2025 16:00:00 GMT-0100");
java.lang.RuntimeException: Should have 5 cookies. Got only 4, expires probably didn't parse correctly
at B6644726.fail(B6644726.java:209)
at B6644726.testCookieStore(B6644726.java:67)
at B6644726.main(B6644726.java:35)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
at java.base/java.lang.Thread.run(Thread.java:1474)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Should have 5 cookies. Got only 4, expires probably didn't parse correctly
A brief look at the test code suggests that it has hard coded cookie expiry date which happens to be today (August 19th 2025):
// Then some alternate expires format
lst.add("myCookie2=bar; path=/dir; expires=Tue, 19 Aug 2025 16:00:00 GMT");
lst.add("myCookie3=test; path=/dir; expires=Tue Aug 19 2025 16:00:00 GMT-0100");
- links to
-
Review(master)
openjdk/jdk/26846