<div dir="ltr"><div dir="ltr">On Tue, Dec 6, 2022 at 9:49 AM Brian Goetz <<a href="mailto:brian.goetz@oracle.com">brian.goetz@oracle.com</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

  
  <div>
    <font size="4"><font face="monospace">Are there some better warnings
        you could see coming out of this exploration?</font></font></div></blockquote><div><br></div><div>Great idea.</div><div><br></div><div>What about simply warning any time "MyClass.this" is used in a situation where it means the same thing as plain "this"?</div><div><br></div><div>Might make for a nice "lint" warning:<br></div><div><br></div><div><span style="font-family:monospace">    MyClass.java:4: warning: [this-qual] unnecessary qualification of 'this'<br>            MyClass.this.x = 12;<br>                   ^<br></span></div></div><br><div class="gmail_quote">-Archie</div><div class="gmail_quote"><br></div>-- <br><div dir="ltr" class="gmail_signature">Archie L. Cobbs<br></div></div>