--- a/jdk/test/java/net/URLConnection/B5052093.java Fri Sep 07 14:00:31 2012 +0100
+++ b/jdk/test/java/net/URLConnection/B5052093.java Fri Sep 07 15:30:17 2012 +0100
@@ -25,7 +25,7 @@
* @test
* @bug 5052093
* @library ../../../sun/net/www/httptest/
- * @build HttpCallback HttpServer ClosedChannelList HttpTransaction
+ * @build HttpCallback TestHttpServer ClosedChannelList HttpTransaction
* @run main B5052093
* @summary URLConnection doesn't support large files
*/
@@ -34,7 +34,7 @@
import sun.net.www.protocol.file.FileURLConnection;
public class B5052093 implements HttpCallback {
- private static HttpServer server;
+ private static TestHttpServer server;
private static long testSize = ((long) (Integer.MAX_VALUE)) + 2;
public static class LargeFile extends File {
@@ -63,7 +63,7 @@
}
public static void main(String[] args) throws Exception {
- server = new HttpServer(new B5052093(), 1, 10, 0);
+ server = new TestHttpServer(new B5052093(), 1, 10, 0);
try {
URL url = new URL("http://localhost:"+server.getLocalPort()+"/foo");
URLConnection conn = url.openConnection();