RFR: 8323057: Recoverable errors may be reported before unrecoverable errors when annotation processing is skipped

Jan Lahoda jlahoda at openjdk.org
Fri Jan 5 19:56:41 UTC 2024


When annotation processing is requested, some errors reported during enter may be resolved by the annotation processors. So, javac stashes the errors from enter aside. When an error that cannot be resolved by annotation processing is found in the stashed errors, the annotation processors all the errors will be printed.

This may be confusing if there's one important non-resolvable error, hidden among many errors that would be resolved by the annotation processors. The proposal herein is therefore to first print the not-recoverable errors, and only then the recoverable errors, when the errors are stashed away and then re-printed.

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

Commit messages:
 - 8323057: Recoverable errors may be reported before unrecoverable errors when annotation processing is skipped

Changes: https://git.openjdk.org/jdk/pull/17286/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17286&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8323057
  Stats: 152 lines in 4 files changed: 134 ins; 11 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/17286.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17286/head:pull/17286

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


More information about the compiler-dev mailing list