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

Maurizio Cimadamore mcimadamore at openjdk.org
Mon Jun 23 14:19:29 UTC 2025


On Mon, 23 Jun 2025 14:15:52 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.

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

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


More information about the compiler-dev mailing list