11 |
|
import java.security.AccessController; |
12 |
|
import java.security.PrivilegedAction; |
13 |
|
import java.security.PrivilegedExceptionAction; |
14 |
+ |
import java.security.AccessControlException; |
15 |
|
|
16 |
|
/** |
17 |
|
* Factory and utility methods for {@link Executor}, {@link |
246 |
|
} |
247 |
|
|
248 |
|
/** |
249 |
< |
* Return a default thread factory used to create new threads. |
249 |
> |
* Returns a default thread factory used to create new threads. |
250 |
|
* This factory creates all new threads used by an Executor in the |
251 |
|
* same {@link ThreadGroup}. If there is a {@link |
252 |
|
* java.lang.SecurityManager}, it uses the group of {@link |
265 |
|
} |
266 |
|
|
267 |
|
/** |
268 |
< |
* Return a thread factory used to create new threads that |
268 |
> |
* Returns a thread factory used to create new threads that |
269 |
|
* have the same permissions as the current thread. |
270 |
|
* This factory creates threads with the same settings as {@link |
271 |
|
* Executors#defaultThreadFactory}, additionally setting the |