7001301: com/sun/net/httpserver/bugs/6725892/Test.java failing
authormichaelm
Fri, 19 Nov 2010 13:30:02 +0000
changeset 7278 a6143ee40961
parent 7272 4ff2cc07e8c2
child 7279 32ac37aa9367
7001301: com/sun/net/httpserver/bugs/6725892/Test.java failing Reviewed-by: alanb
jdk/test/com/sun/net/httpserver/bugs/6725892/Test.java
--- a/jdk/test/com/sun/net/httpserver/bugs/6725892/Test.java	Wed Nov 17 14:32:29 2010 +0000
+++ b/jdk/test/com/sun/net/httpserver/bugs/6725892/Test.java	Fri Nov 19 13:30:02 2010 +0000
@@ -65,13 +65,7 @@
     public static void main (String[] args) throws Exception {
 
         ExecutorService exec = Executors.newCachedThreadPool();
-        //Logger log = Logger.getLogger ("com.sun.net.httpserver");
-        //log.setLevel(Level.ALL);
-        //ConsoleHandler hg = new ConsoleHandler();
-        //hg.setLevel (Level.ALL);
-        //log.addHandler(hg);
 
-            sun.net.httpserver.HttpServerImpl x = null;
         try {
             InetSocketAddress addr = new InetSocketAddress (0);
             s1 = HttpServer.create (addr, 0);
@@ -82,11 +76,10 @@
 
             port = s1.getAddress().getPort();
             System.out.println ("Server on port " + port);
-            url = new URL ("http://rialto.ireland:"+port+"/foo");
+            url = new URL ("http://127.0.0.1:"+port+"/foo");
             test1();
             test2();
             test3();
-            x = (sun.net.httpserver.HttpServerImpl)s1;
             Thread.sleep (2000);
         } catch (Exception e) {
             e.printStackTrace();