RFR: 8359596: Behavior change when both -Xlint:options and -Xlint:-options flags are given [v2]

Archie Cobbs acobbs at openjdk.org
Mon Jun 23 18:31:29 UTC 2025


On Mon, 23 Jun 2025 14:17:14 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> > I have to admit I don't really get why `isExplicitEnabled/Disabled` takes an `Option` parameter -- I see them always invoked with `Option.XLINT`. Because of that, I'm not even sure they belong much in `Options` at all -- an instance method on `LintCategory` which accepts `Options` would perhaps look simpler for clients?
> 
> Note: the same is true for the new methods `isEnabled`/`isDisabled` added in this PR -- they feel `Lint`-specific methods to me.

It's to allow for future customization of other lint-related options, in particular `-Werror` - see #23622.

Maybe that's a little too leading? I can remove it if you prefer.

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

PR Comment: https://git.openjdk.org/jdk/pull/25840#issuecomment-2997517662


More information about the compiler-dev mailing list