6536211: flaw in ServerImpl
authormichaelm
Mon, 14 Jul 2008 11:39:42 +0100
changeset 905 8445a646acfb
parent 904 eadc9fa4b700
child 906 17568a617956
6536211: flaw in ServerImpl Summary: removed doPrivileged block Reviewed-by: jccollet
jdk/src/share/classes/sun/net/httpserver/ServerImpl.java
--- a/jdk/src/share/classes/sun/net/httpserver/ServerImpl.java	Wed Jul 09 12:03:16 2008 +0800
+++ b/jdk/src/share/classes/sun/net/httpserver/ServerImpl.java	Mon Jul 14 11:39:42 2008 +0100
@@ -120,14 +120,8 @@
         if (executor == null) {
             executor = new DefaultExecutor();
         }
+        Thread t = new Thread (dispatcher);
         started = true;
-        final Dispatcher d = dispatcher;
-        Thread t = AccessController.doPrivileged(new PrivilegedAction<Thread>() {
-            public Thread run() {
-                Thread t = new Thread (d);
-                return t;
-            }
-        });
         t.start();
     }