Integrated: JDK-8310861: Improve location reporting for javac serial lint warnings
Joe Darcy
darcy at openjdk.org
Mon Jun 26 17:00:11 UTC 2023
On Mon, 26 Jun 2023 00:54:32 GMT, Joe Darcy <darcy at openjdk.org> wrote:
> For a subset of the expanded serial lint warnings ([JDK-8202056](https://bugs.openjdk.org/browse/JDK-8202056), [JDK-8160675](https://bugs.openjdk.org/browse/JDK-8160675)), javac uses the location of the enclosing type rather than the method or field in question.
>
> This PR addresses this by using the idiom of finding the method/field's tree within the type tree being checked.
>
> All langtools regression tests pass when run locally; the intention is to backport this fix to JDK 21 as well.
This pull request has now been integrated.
Changeset: 289f218a
Author: Joe Darcy <darcy at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/289f218a32558bbbf7e6c589b4618757bd6d043f
Stats: 52 lines in 9 files changed: 24 ins; 0 del; 28 mod
8310861: Improve location reporting for javac serial lint warnings
Reviewed-by: jlahoda
-------------
PR: https://git.openjdk.org/jdk/pull/14644
More information about the compiler-dev
mailing list