RFR: 8369428: Include method name in 'does not override or implement' diagnostics [v2]

Vicente Romero vromero at openjdk.org
Mon Oct 27 21:19:03 UTC 2025


On Thu, 9 Oct 2025 12:20:08 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
>
> Liam Miller-Cushon has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update more diagnostics

lgtm

-------------

Marked as reviewed by vromero (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27692#pullrequestreview-3385498160


More information about the compiler-dev mailing list