RFR: 8353642: Deprecate URL::getPermission method and networking permission classes for removal [v4]
Sean Mullan
mullan at openjdk.org
Mon May 12 16:22:59 UTC 2025
On Mon, 12 May 2025 15:21:46 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> Ah - good point - I will double check.
>
> Yes - it is needed as well. Apparently if you override a deprecated method you need both `@Deprecated` and `@SuppressWarning`:
>
>
> src/java.base/share/classes/java/net/HttpURLConnection.java:615: warning: [removal] getPermission() in URLConnection has been deprecated and marked for removal
> public Permission getPermission() throws IOException {
> ^
> error: warnings found and -Werror specified
Ok, but seems redundant.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24592#discussion_r2085033749
More information about the net-dev
mailing list