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

Archie Cobbs acobbs at openjdk.org
Tue Jan 7 22:34:49 UTC 2025


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)).

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

Commit messages:
 - Remove unnecessary "-Xlint:-path" flags in test compilations.

Changes: https://git.openjdk.org/jdk/pull/22958/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22958&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8347141
  Stats: 10 lines in 8 files changed: 0 ins; 0 del; 10 mod
  Patch: https://git.openjdk.org/jdk/pull/22958.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22958/head:pull/22958

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


More information about the compiler-dev mailing list