Code Review 6933629: java/net/HttpURLConnection/HttpResponseCode.java fails if run in samevm mode
Alan Bateman
Alan.Bateman at Sun.COM
Wed Mar 10 09:34:35 PST 2010
Christopher Hegarty - Sun Microsystems Ireland wrote:
> 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.
Looks OK to me. Don't forget to remove it from test/ProblemList.txt.
-Alan.
More information about the net-dev
mailing list