提交 3f253430 编写于 作者: M michaelm

6536211: flaw in ServerImpl

Summary: removed doPrivileged block
Reviewed-by: jccollet
上级 c849a27b
...@@ -120,14 +120,8 @@ class ServerImpl implements TimeSource { ...@@ -120,14 +120,8 @@ class ServerImpl implements TimeSource {
if (executor == null) { if (executor == null) {
executor = new DefaultExecutor(); executor = new DefaultExecutor();
} }
Thread t = new Thread (dispatcher);
started = true; 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(); t.start();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册