changeset 448:c9be2cc052b5

6536211: flaw in ServerImpl Summary: removed doPrivileged block Reviewed-by: jccollet
author michaelm
date Mon, 14 Jul 2008 11:39:42 +0100
parents 1d621ef0330b
children 3b8e5bfe2be7
files src/share/classes/sun/net/httpserver/ServerImpl.java
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/net/httpserver/ServerImpl.java	Wed Jul 09 12:03:16 2008 +0800
+++ b/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();
     }