<div dir="ltr">On Wed, Nov 2, 2022 at 2:47 PM Alex Buckley <<a href="mailto:alex.buckley@oracle.com">alex.buckley@oracle.com</a>> wrote:<br><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">JLS ch.16 is specific that only `foo` and `this.foo` cause an error. See <br>
the definition of "access" in the opening paragraphs of the chapter.<br></blockquote><div><br></div><div><div dir="ltr"><div>Thanks for pointing that out, which I forgot to do. The JLS language is:</div><div><br></div><div style="margin-left:40px">An access to its value consists of the simple name of the variable
             (or, for a field, the simple name of the field qualified
            by <code class="gmail-literal">this</code>)  occurring anywhere in an expression except as
            the left-hand operand of the simple assignment operator <code class="gmail-literal">=</code>
<code class="gmail-literal"></code></div><div><br></div><div>In theory one could argue that MyClass<span style="font-family:monospace">.this.foo</span> is also an example of "the simple name of the field qualified
            by <code class="gmail-literal">this<span style="font-family:arial,sans-serif">" - just look at the latter part, no?</span><br></code></div><div><code class="gmail-literal"><br></code></div>Regardless, it looks like there needs to be a spec change... 
right? I'm assuming we'd rather do that than continue to allow the current
 behavior.<div><br></div><div>Thanks,<br></div><div>-Archie<br></div></div><br></div></div>-- <br><div dir="ltr" class="gmail_signature">Archie L. Cobbs<br></div></div>