RFR: JDK-8344303 : Remove usage of URLUtil.getConnectPermission from sun.awt.SunToolkit and sun.awt.image.URLImageSource
Harshitha Onkar
honkar at openjdk.org
Fri Nov 22 18:48:24 UTC 2024
sun.awt.SunToolkit and sun.awt.image.URLImageSource are calling sun.net.util.URLUtil.getConnectPermission(URL)
With the SecurityManager gone there's no need to call this method anymore.
There are other checkPermissions in these 2 files - SunToolkit, URLImageSource but I have removed only those that are related to URLUtil.getConnectPermission(URL). Other checkPermission removal will be handled in a separate issue.
Integrating this PR will allow to proceed with a dependent JBS issue - [JDK-8344180](https://bugs.openjdk.org/browse/JDK-8344180)
-------------
Commit messages:
- URLUtil.getConnectPermission() removal
Changes: https://git.openjdk.org/jdk/pull/22330/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22330&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8344303
Stats: 35 lines in 2 files changed: 0 ins; 35 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/22330.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/22330/head:pull/22330
PR: https://git.openjdk.org/jdk/pull/22330
More information about the client-libs-dev
mailing list