RFR: 8342997: Remove use of System::getSecurityManager and SecurityManager [v6]
Lukasz Kostyra
lkostyra at openjdk.org
Thu Nov 14 15:45:33 UTC 2024
On Wed, 13 Nov 2024 22:06:12 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
>> Ths PR removes all remaining calls to `System::getSecurityManager` and the `SecurityManager` class along with the `System.getGecurityManager() != null` code paths.
>>
>> As part of doing this, the last uses of `PermissionHelper` and `FXPermissions` were eliminated, so I deleted those two classes. Since `PermissionHelper` was the last remaining use of `AccessControlException`, I am adding JDK-8342998 to this PR.
>>
>> In a few places, I noted some "check permissions" methods that are now no-ops that might be candidates for further cleanup (not directly related, so not planned for jfx24).
>>
>> Finally, I deleted several unused methods in `MethodUtil` and `ReflectUtil` (some of these were already removed in the corresponding JDK classes, and some of them were unused after the changes to remove the call to `getSecurityManager`).
>
> Kevin Rushforth has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains nine additional commits since the last revision:
>
> - Merge branch 'master' into 8342997-getSecurityManager
> - fix copy/paste error in comment
> - remove redundant override of Dragboard::getContentImpl
> - Restore mistakenly removed comment.
> - Replace 'TODO: SM removal:' comments with 'TODO: JDK-nnnnnnn:'
> - Additional cleanup of unused fields, imports, and comments related to permissions
> - Review comments: remove unused field, methods in FXMLLoader
> - 8342994: Remove security manager calls in com.sun.javafx.reflect
> Remove dead code from ReflectUtil
> - 8342997: Remove use of System::getSecurityManager and SecurityManager
> 8342998: Remove all uses of AccessControlException
Looks good, verified on Windows
-------------
Marked as reviewed by lkostyra (Committer).
PR Review: https://git.openjdk.org/jfx/pull/1631#pullrequestreview-2436452252
More information about the openjfx-dev
mailing list