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

Liam Miller-Cushon cushon at openjdk.org
Thu Oct 9 12:20:08 UTC 2025


> 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

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27692/files
  - new: https://git.openjdk.org/jdk/pull/27692/files/75eb2794..fc64a0b4

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27692&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27692&range=00-01

  Stats: 15 lines in 10 files changed: 2 ins; 0 del; 13 mod
  Patch: https://git.openjdk.org/jdk/pull/27692.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27692/head:pull/27692

PR: https://git.openjdk.org/jdk/pull/27692


More information about the compiler-dev mailing list