-
CSR
-
Resolution: Approved
-
P4
-
None
-
behavioral
-
minimal
-
Users relying on SecurityManager to prevent the original behavior by restricting runtime permissions would no longer do so.
-
Java API
-
SE
Summary
Remove left over references to SecurityManager permissions from java.util.concurrent.ThreadPoolExecutor
.
Problem
As Security Manager is removed, the mention of RuntimePermission in the ThreadPoolExecutor is no longer applicable and should be removed.
Solution
Remove the section of documentation which discusses the implications of not having the correct RuntimePermissions.
Specification
diff --git a/src/java.base/share/classes/java/util/concurrent/ThreadPoolExecutor.java b/src/java.base/share/classes/java/util/concurrent/ThreadPoolExecutor.java
index e34810fe966..0bf5669b6e1 100644
--- a/src/java.base/share/classes/java/util/concurrent/ThreadPoolExecutor.java
+++ b/src/java.base/share/classes/java/util/concurrent/ThreadPoolExecutor.java
@@ -113,12 +113,7 @@
* alter the thread's name, thread group, priority, daemon status,
* etc. If a {@code ThreadFactory} fails to create a thread when asked
* by returning null from {@code newThread}, the executor will
- * continue, but might not be able to execute any tasks. Threads
- * should possess the "modifyThread" {@code RuntimePermission}. If
- * worker threads or other threads using the pool do not possess this
- * permission, service may be degraded: configuration changes may not
- * take effect in a timely manner, and a shutdown pool may remain in a
- * state in which termination is possible but not completed.</dd>
+ * continue, but might not be able to execute any tasks.</dd>
*
* <dt>Keep-alive times</dt>
*
- csr of
-
JDK-8347842 ThreadPoolExecutor specification discusses RuntimePermission
-
- Resolved
-