RFR: JDK-8344303 : Remove usage of URLUtil.getConnectPermission from sun.awt.SunToolkit and sun.awt.image.URLImageSource

Phil Race prr at openjdk.org
Fri Nov 22 19:21:13 UTC 2024


On Fri, 22 Nov 2024 18:43:42 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

> 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)

so what about this ?

--- a/src/java.base/share/classes/module-info.java
+++ b/src/java.base/share/classes/module-info.java


<pre>
         java.security.jgss,
         jdk.naming.dns;
     exports sun.net.util to
-        java.desktop,
         java.net.http,
         jdk.jconsole,
         jdk.sctp;

</pre>

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

PR Comment: https://git.openjdk.org/jdk/pull/22330#issuecomment-2494618019


More information about the client-libs-dev mailing list