<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <div class="moz-cite-prefix">PS Belated comments when catching up on
      email...<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 11/9/2024 2:50 PM, Archie Cobbs
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CANSoFxth8njxzfag-Rff5WqYe7Ykx=L3e7v1VJ_ArcW8cN_iMQ@mail.gmail.com">
      
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr">
                          <div dir="ltr">
                            <div dir="ltr">
                              <div dir="ltr">
                                <div dir="ltr">
                                  <div dir="ltr">
                                    <div dir="ltr">
                                      <div dir="ltr">
                                        <div dir="ltr">
                                          <div dir="ltr">
                                            <div dir="ltr">
                                              <div dir="ltr">
                                                <div dir="ltr">
                                                  <div dir="ltr">
                                                    <div dir="ltr">
                                                      <div dir="ltr">
                                                        <div dir="ltr">
                                                          <div dir="ltr">
                                                          <div dir="ltr">
                                                          <div dir="ltr">
                                                          <div dir="ltr">
                                                          <div dir="ltr">
                                                          <div><b>Overview</b><br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>This is a
                                                          proposal to
                                                          add the
                                                          ability for
                                                          the compiler
                                                          to detect and
                                                          report
                                                          unnecessary
                                                          warning
                                                          suppressions.</div>
                                                          <div><br>
                                                          </div>
                                                          <div>An
                                                          "unnecessary
                                                          warning
                                                          suppression"
                                                          is when one of
                                                          the following
                                                          happens:<br>
                                                          </div>
                                                          <div>
                                                          <ul>
                                                          <li><span style="font-family:arial,sans-serif">There is a </span><span style="font-family:monospace">@SuppressWarnings("foo")</span><font face="arial,sans-serif"> annotation, but if it hadn't been there, no </font><span style="font-family:monospace">foo </span><font face="arial,sans-serif">warning
                                                          would have
                                                          been generated
                                                          within the
                                                          annotation's
                                                          scope<br>
                                                          </font></li>
                                                          <li><span style="font-family:arial,sans-serif">The compiler is passed </span><span style="font-family:monospace">-Xlint:-foo</span>, but if it hadn't been,
                                                          no <span style="font-family:monospace">foo</span> warning would<font face="arial,sans-serif"> have been generated during the entire
                                                          compilation<br>
                                                          </font></li>
                                                          </ul>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>Another consideration is being able to successfully compile a
      code base under multiple javac versions. A particular important
      instance of this is boot strapping the JDK :-)</p>
    <p>Cases that have occurred in the past that would make such a
      discipline challenging include:<br>
      <br>
      * Correctness fixes to the warning computation<br>
      * Expanding (or narrowing) the scope of what the warning looks for
      (e.g. the serial warning)</p>
    <p>So perhaps "messages" about "unnecessary warning suppression"
      should be relayed somewhat outside of the existing warnings
      mechanism.</p>
    <p>Cheers,<br>
    </p>
    <p>-Joe<br>
    </p>
  </body>
</html>