RFR: 8155591: Misleading warning when not overriding close method in interface extending AutoCloseable [v3]
Archie Cobbs
acobbs at openjdk.org
Thu Nov 6 02:53:47 UTC 2025
On Wed, 5 Nov 2025 23:36:27 GMT, ExE Boss <duke at openjdk.org> wrote:
> What about the case when `WithClose` is replaced with an `abstract class` with an `abstract void close()` method declaration?
Thanks, I've added that as well. No warning in that case, because the `close()` method is not concrete so the problem hasn't become "real" yet.
Since this forces a re-review, I'll also merged in the fix to put the warning on the method instead of the class as mentioned above.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27062#discussion_r2496917557
More information about the compiler-dev
mailing list