RFR: 8344299: SM cleanup in javax.naming modules
Aleksei Efimov
aefimov at openjdk.org
Thu Nov 28 00:22:58 UTC 2024
The proposed change cleans-up `SecurityManager`, `doPriviledged`, and `AccessController` usages from `java.naming`, `jdk.naming.rmi` and `jdk.naming.dns` modules.
One noteworthy change: The `java.naming.rmi.security.manager` JNDI environment property can be used to setup the `SecurityManager`: if the property is added to an environment map the `RegistryContext` attempts to setup the `SecurityManager`. The environment property and related method are removed in this PR.
`tier1` - `tier3`, and other non-tiered JNDI tests showed no failures related to this change.
-------------
Commit messages:
- 8344299: SM cleanup in javax.naming modules
Changes: https://git.openjdk.org/jdk/pull/22421/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22421&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8344299
Stats: 293 lines in 18 files changed: 0 ins; 231 del; 62 mod
Patch: https://git.openjdk.org/jdk/pull/22421.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/22421/head:pull/22421
PR: https://git.openjdk.org/jdk/pull/22421
More information about the core-libs-dev
mailing list