Integrated: 8359596: Behavior change when both -Xlint:options and -Xlint:-options flags are given
Archie Cobbs
acobbs at openjdk.org
Fri Jun 27 18:28:28 UTC 2025
On Tue, 17 Jun 2025 01:57:33 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:
> My minor contribution to #24746 (which fixed [JDK-8354556](https://bugs.openjdk.org/browse/JDK-8354556)) accidentally introduced a change in the compiler's behavior when given conflicting lint flags like `-Xlint:options -Xlint:-options`. This PR restores the original behavior.
>
> Although this might be considered a weird corner case, many build systems add flags in multiple stages and this can easily result in both flags being added, and so the behavior in this scenario needs to stay consistent.
>
> Basically the code was trying to be too clever; when the original logic is restored, the code gets simpler.
This pull request has now been integrated.
Changeset: 3525a40f
Author: Archie Cobbs <acobbs at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/3525a40f39a966b8592f694a9b3cd4c5dc449266
Stats: 104 lines in 6 files changed: 69 ins; 15 del; 20 mod
8359596: Behavior change when both -Xlint:options and -Xlint:-options flags are given
Reviewed-by: mcimadamore, uschindler
-------------
PR: https://git.openjdk.org/jdk/pull/25840
More information about the compiler-dev
mailing list