6536211: flaw in ServerImpl
Summary: removed doPrivileged block
Reviewed-by: jccollet
--- 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();
}