Integrated: 8347141: Several javac tests compile with an unnecessary -Xlint:-path flag

Archie Cobbs acobbs at openjdk.org
Thu Jan 9 14:48:40 UTC 2025


On Tue, 7 Jan 2025 22:29:47 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:

> Please review this patch which removes unnecessary `-Xlint:-path` flags from a few javac regression tests.
> 
> These tests invoke the compiler with the `-Xlint:all,-path` flag, but the `path` option is unrelated to, and not needed for, the test.
> 
> The tests all succeed just fine without it, i.e., with `-Xlint:all` instead.
> 
> The suppression of the `path` lint category appears to be leftover cruft from long ago (at least, according to [this discussion](https://mail.openjdk.org/pipermail/compiler-dev/2024-November/028514.html)).

This pull request has now been integrated.

Changeset: cb9a98b3
Author:    Archie Cobbs <acobbs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/cb9a98b31a464e683519df46796339c7cecd82ec
Stats:     10 lines in 8 files changed: 0 ins; 0 del; 10 mod

8347141: Several javac tests compile with an unnecessary -Xlint:-path flag

Reviewed-by: vromero, darcy

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

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


More information about the compiler-dev mailing list