Code Review 6933629: java/net/HttpURLConnection/HttpResponseCode.java fails if run in samevm mode
Christopher Hegarty - Sun Microsystems Ireland
Christopher.Hegarty at Sun.COM
Wed Mar 10 09:31:34 PST 2010
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.
More information about the net-dev
mailing list