<div dir="ltr"><div dir="ltr">On Thu, Jul 11, 2024 at 6:01 AM Stephan Herrmann <<a href="mailto:stephan.herrmann@berlin.de">stephan.herrmann@berlin.de</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">Using javac from build 23-ea+30-2323 this compiles fine and prints "f1f1f1f3".<br>
<br>
When, however, I enable the innermost access to f1, javac complains:<br>
<br>
   error: no enclosing instance of type C1 is in scope<br>
<br>
Is this a bug, or am I missing some subtlety from the spec?<br></blockquote><div><br></div>You're right, I think that's a bug - thanks.</div><div class="gmail_quote"><br></div><div class="gmail_quote"><a href="https://bugs.openjdk.org/browse/JDK-8336255">https://bugs.openjdk.org/browse/JDK-8336255</a></div><div class="gmail_quote"><br></div><div class="gmail_quote">-Archie<br></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Archie L. Cobbs<br></div></div>