Integrated: 8344223: Remove calls to SecurityManager and doPrivileged in java.net.URLClassLoader after JEP 486 integration

Jaikiran Pai jpai at openjdk.org
Wed Nov 20 12:44:29 UTC 2024


On Tue, 19 Nov 2024 10:32:37 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> Can I please get a review of this change which proposes to remove SecurityManager related API usages from `URLClassLoader` and its related `URLClassPath`? This addresses https://bugs.openjdk.org/browse/JDK-8344223.
> 
> The `URLClassLoader.getPermissions()` method will need additional changes but that will be done as part of https://bugs.openjdk.org/browse/JDK-8343150.
> 
> I'll be opening a CSR for this change because we are removing support for the `jdk.net.URLClassPath.disableRestrictedPermissions` system property.
> 
> No new tests have been added and existing tier1, tier2 and tier3 tests continue to pass.

This pull request has now been integrated.

Changeset: db7ee3da
Author:    Jaikiran Pai <jpai at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/db7ee3dad1d9c9578794d946dd5de1f51d77e5a1
Stats:     423 lines in 3 files changed: 26 ins; 311 del; 86 mod

8344223: Remove calls to SecurityManager and doPrivileged in java.net.URLClassLoader after JEP 486 integration

Reviewed-by: alanb, yzheng

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

PR: https://git.openjdk.org/jdk/pull/22233


More information about the core-libs-dev mailing list