Integrated: 8323057: Recoverable errors may be reported before unrecoverable errors when annotation processing is skipped
Jan Lahoda
jlahoda at openjdk.org
Mon Jan 22 10:58:35 UTC 2024
On Fri, 5 Jan 2024 19:51:35 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: 72f19902
Author: Jan Lahoda <jlahoda at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/72f199024d58b53a1dff2f79dd2050ae0044e809
Stats: 152 lines in 4 files changed: 134 ins; 11 del; 7 mod
8323057: Recoverable errors may be reported before unrecoverable errors when annotation processing is skipped
Reviewed-by: vromero
-------------
PR: https://git.openjdk.org/jdk/pull/17286
More information about the compiler-dev
mailing list