RFR: JDK-8344303 : Remove usage of URLUtil.getConnectPermission from sun.awt.SunToolkit and sun.awt.image.URLImageSource [v3]
Harshitha Onkar
honkar at openjdk.org
Fri Nov 22 20:25:52 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)
Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision:
sun/net/util/URLUtil.java changes
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/22330/files
- new: https://git.openjdk.org/jdk/pull/22330/files/0bf680e9..b516ba94
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=22330&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=22330&range=01-02
Stats: 25 lines in 1 file changed: 0 ins; 25 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