Code Review 6933629: java/net/HttpURLConnection/HttpResponseCode.java fails if run in samevm mode (original) (raw)
Christopher Hegarty - Sun Microsystems Ireland Christopher.Hegarty at Sun.COM
Wed Mar 10 09:31:34 PST 2010
- Previous message: hg: jdk7/tl/jdk: 6933618: java/net/MulticastSocket/NoLoopbackPackets.java fails when rerun
- Next message: Code Review 6933629: java/net/HttpURLConnection/HttpResponseCode.java fails if run in samevm mode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Alan, Michael,
Summary: Make test run in othervm.
java/net/HttpURLConnection/HttpResponseCode.java fails if run in samevm mode with a NullPointer Exception cause by CookieHandlerTest$MyCookieHandler.put(CookieHandlerTest.java:131)
The CookieHandlerTest$MyCookieHandler the HTTP protocol handler is using is installed during the run of another test, java/net/CookieHandler/CookieHandlerTest.java. This is clearly not supposed to be installed during the HttpResponseCode test. In fact, it may also have a negative effect on other HTTP releated tests. CookieHandlerTest should be run in othervm mode so that the default cookie handler installed does not effect subsequent tests.
Webrev: http://cr.openjdk.java.net/~chegar/6933629/webrev.00/webrev/
Thanks, -Chris.
- Previous message: hg: jdk7/tl/jdk: 6933618: java/net/MulticastSocket/NoLoopbackPackets.java fails when rerun
- Next message: Code Review 6933629: java/net/HttpURLConnection/HttpResponseCode.java fails if run in samevm mode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]