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

Liam Miller-Cushon cushon at openjdk.org
Mon Oct 27 21:28:58 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Merge branch 'openjdk:master' into JDK-8369428
 - Update more diagnostics
 - 8369428: Include method name in 'does not override or implement' diagnostics

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

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

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

  Stats: 58933 lines in 1501 files changed: 35159 ins; 15739 del; 8035 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