policeman-tools / forbidden-apis

Policeman's Forbidden API Checker
Apache License 2.0
339 stars 34 forks source link

Remove HttpResponse.BodyHandlers.ofFile(Path) from banned method list in Java 21 signatures #225

Closed uschindler closed 1 year ago

uschindler commented 1 year ago

Followup of #214, this method must be removed in signatures files for Java 21.

kwin commented 1 year ago

Actually the fix is even backported to 17.0.7: https://bugs.openjdk.org/browse/JDK-8299353

uschindler commented 1 year ago

That's fine, but it is still not recommend to use that function. Because if you develop a library you do not know which exact version java runs on.