<div dir="ltr"><div>Thanks for the confirmation. I've created <a href="https://bugs.openjdk.org/browse/JDK-8352612">JDK-8352612</a> to track it.</div><div><br></div><div>-Archie</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, Mar 21, 2025 at 7:27 AM Maurizio Cimadamore <<a href="mailto:maurizio.cimadamore@oracle.com">maurizio.cimadamore@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<p>I always assumed what you assumed :-)</p>
<p>E.g. _all_ is a special markers which selects all, _none_ one
that selects nothing. From there you can remove (in the first
case) or add (in the second case).</p>
<p>If it doesn't work like that, I'd say that's a bug.</p>
<p>Maurizio<br>
</p>
<div>On 20/03/2025 20:16, Archie Cobbs
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>What is the intended meaning of a javac flag like <span style="font-family:monospace">-Xlint:none,serial</span>
(where you might replace <span style="font-family:monospace">"serial"</span>
with any other non-mandatory lint category).</div>
<div><br>
</div>
<div>I always assumed that this means "Disable all lint
categories, and then enable the <span style="font-family:monospace">"serial"</span> category". And
in fact, that's how it works for mandatory lint categories
like <span style="font-family:monospace">"unchecked"</span>.</div>
<div><br>
</div>
<div>But for non-mandatory lint categories, what it actually
means is "Disable all lint categories, period." (which happens
<a href="https://github.com/openjdk/jdk/blob/56038fb5a156568cce2e80f5db18b10ad61c06e4/src/jdk.compiler/share/classes/com/sun/tools/javac/util/Log.java#L370" target="_blank">here</a> and <a href="https://github.com/openjdk/jdk/blob/56038fb5a156568cce2e80f5db18b10ad61c06e4/src/jdk.compiler/share/classes/com/sun/tools/javac/util/Log.java#L722" target="_blank">here</a>). <br>
</div>
<div><br>
</div>
<div>Is that intended? It seems surprising, and is asymmetrical
with the meaning of <span style="font-family:monospace">-Xlint:all,-serial</span>,
which means the converse "Enable all lint categories, and then
disable the <span style="font-family:monospace">"serial"</span>
category".</div>
<div><br>
</div>
<div>Thanks,</div>
<div>-Archie</div>
<br>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature">Archie L. Cobbs<br>
</div>
</div>
</blockquote>
</div>
</blockquote></div><div><br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Archie L. Cobbs<br></div>