Integrated: 8344221: Remove calls to SecurityManager and and doPrivileged in java.net.IDN, java.net.URL, java.net.URLConnection, sun.net.util.URLUtil, and java.net.URLStreamHandlerProvider after JEP 486 integration

Daniel Fuchs dfuchs at openjdk.org
Mon Nov 18 15:20:54 UTC 2024


On Fri, 15 Nov 2024 16:58:46 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> Calls to getSecurityManager, checkPermission, and doPrivileged are removed.
> 
> - URLUtils.getConnectPermission is still used in the client area and couldn't be removed right away. [JDK-8344303](https://bugs.openjdk.org/browse/JDK-8344303) has been logged.
> 
> - Similarly, URLConnection.getPermission is a public API. [JDK-8344308](https://bugs.openjdk.org/browse/JDK-8344308) has been logged to deprecate it for removal.

This pull request has now been integrated.

Changeset: d52d1364
Author:    Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/d52d13648612546ef4458579aff6daf965586a03
Stats:     172 lines in 5 files changed: 0 ins; 135 del; 37 mod

8344221: Remove calls to SecurityManager and and doPrivileged in java.net.IDN, java.net.URL, java.net.URLConnection, sun.net.util.URLUtil, and java.net.URLStreamHandlerProvider after JEP 486 integration

Reviewed-by: alanb, rriggs

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

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


More information about the net-dev mailing list