RFR: 8344562: Remove security manager dependency from module jdk.jdi
Sean Mullan
mullan at openjdk.org
Wed Nov 20 13:36:19 UTC 2024
On Wed, 20 Nov 2024 06:58:36 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
>> Trivial removal of the use of the `SecurityManager` from a single class.
>
> src/jdk.jdi/share/classes/com/sun/tools/jdi/VirtualMachineManagerImpl.java line 65:
>
>> 63: SecurityManager sm = System.getSecurityManager();
>> 64: if (sm != null) {
>> 65: JDIPermission vmmPermission =
>
> `JDIPermission` is now unused
It is a standard API, so we cannot remove it unless we go through a deprecation process, and it is ok to leave it for now. We will consider deprecating it (and other `Permission` subclasses) for removal in JDK 25.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22251#discussion_r1850326305
More information about the serviceability-dev
mailing list