harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Qiu <sean.xx....@gmail.com>
Subject Re: [classlib] URLConnectionTest
Date Thu, 25 Feb 2010 03:21:45 GMT
Stand by you.

Best Regards
Sean, Xiao Xia Qiu



2010/2/22 Mark Hindess <mark.hindess@googlemail.com>

>
> I was looking at the URLConnectionTest recently for a JIRA and I was
> wondering about this code:
>
>    public void test_getOutputStream() throws Exception {
>        int port = Support_Jetty.startDefaultServlet();
>        try {
>            ...
>        } finally {
>            Support_Jetty.startDefaultServlet();
>        }
>    }
>
> I'd have expected the finally clause to stop the servlet?  I'd probably
> have changed this but, although Support_Jetty.startDefaultServlet() is
> public, the equivalent stop method is private?  This seems a little odd.
>
> Regards,
>  Mark.
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message