Integrated: 8369428: Include method name in 'does not override or implement' diagnostics
Liam Miller-Cushon
cushon at openjdk.org
Tue Oct 28 08:57:11 UTC 2025
On Wed, 8 Oct 2025 14:12:57 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:
> Hi,
>
> Please consider this small improvement to `compiler.err.method.does.not.override.superclass` diagnostics, to include the method name.
>
> Before:
>
>
> T.java:2: error: method does not override or implement a method from a supertype
> @Override
> ^
>
>
> After:
>
>
> T.java:2: error: f() does not override or implement a method from a supertype
> @Override
> ^
> 1 error
This pull request has now been integrated.
Changeset: f82cc22b
Author: Liam Miller-Cushon <cushon at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/f82cc22bfe675ca263270a932f9cc12e837a7f65
Stats: 15 lines in 10 files changed: 3 ins; 0 del; 12 mod
8369428: Include method name in 'does not override or implement' diagnostics
Reviewed-by: vromero, liach
-------------
PR: https://git.openjdk.org/jdk/pull/27692
More information about the compiler-dev
mailing list