RFR: 8353642: Deprecate networking permission classes for removal [v2]

Michael McMahon michaelm at openjdk.org
Fri Apr 11 13:49:27 UTC 2025


On Fri, 11 Apr 2025 10:01:26 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> Please find her a patch that deprecate networking permission classes for removal. The method `URL::getPermission` now serves little  purpose and is also deprecated. That method was overridden in subclasses and specified to return some of the deprecated permissions.
>
> Daniel Fuchs has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Missing white spaces

src/java.base/share/classes/java/security/CodeSource.java line 461:

> 459:                 if (this.sp == null) {
> 460:                     @SuppressWarnings("removal")
> 461:                     var _ = this.sp = new SocketPermission(thisHost, "resolve");

What's the reason for the `var _ =` bit ?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24592#discussion_r2039598335


More information about the nio-dev mailing list