RFR: 8314260: Unable to load system libraries on Windows when using a SecurityManager [v2]

ExE Boss duke at openjdk.org
Tue Sep 5 09:39:40 UTC 2023


On Tue, 5 Sep 2023 09:38:17 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> This PR proposes to read the system environment variable "SystemRoot" using a privileged operation so it will work in the event a default SecurityManager is in place.
>> 
>> As the `SecurityManager` is deprecated for removal, no support methods were added for reading environmental variables.
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add a SecurityManager for TestLinker

test/jdk/java/foreign/TestLinker.java line 30:

> 28:  * @modules java.base/jdk.internal.foreign
> 29:  * @run testng/othervm/policy=security.policy
> 30:  *          -Djava.security.manager=default TestLinker

This test should also be run without a `SecurityManager` installed.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/15564#discussion_r1315645246


More information about the core-libs-dev mailing list