RFR: 8353642: Deprecate networking permission classes for removal [v2]
Alan Bateman
alanb at openjdk.org
Fri Apr 11 11:37:36 UTC 2025
On Fri, 11 Apr 2025 11:30:54 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> src/java.base/share/classes/java/net/HttpURLConnection.java line 617:
>>
>>> 615: * {@link java.security.AllPermission}.
>>> 616: */
>>> 617: @Deprecated(since = "25")
>>
>> can this (and all other getPermission methods) be "forRemoval=true"?
>
> Possibly. @AlanBateman may have some thoughts on this.
I think we should at least consider deprecating URLConnection.getPermission and HttpURLConnection.getPermission for removal, only because I don't immediately see the advantage of doing it in two steps for these two APIs.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24592#discussion_r2039366899
More information about the nio-dev
mailing list