Skip to content

Commit c4c6b1f

Browse files
author
Brian Burkhalter
committedNov 20, 2024
8344562: Remove security manager dependency from module jdk.jdi
Reviewed-by: kevinw, lmesnik, cjplummer
1 parent 9be8ac6 commit c4c6b1f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed
 

‎src/jdk.jdi/share/classes/com/sun/tools/jdi/VirtualMachineManagerImpl.java

-7
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,6 @@ public class VirtualMachineManagerImpl implements VirtualMachineManagerService {
5959
private static VirtualMachineManagerImpl vmm;
6060

6161
public static VirtualMachineManager virtualMachineManager() {
62-
@SuppressWarnings("removal")
63-
SecurityManager sm = System.getSecurityManager();
64-
if (sm != null) {
65-
JDIPermission vmmPermission =
66-
new JDIPermission("virtualMachineManager");
67-
sm.checkPermission(vmmPermission);
68-
}
6962
synchronized (lock) {
7063
if (vmm == null) {
7164
vmm = new VirtualMachineManagerImpl();

0 commit comments

Comments
 (0)