Draft Spec for Second Preview of Flexible Constructor Bodies (JEP 482)

Archie Cobbs archie.cobbs at gmail.com
Thu Jul 11 13:56:09 UTC 2024


On Thu, Jul 11, 2024 at 6:01 AM Stephan Herrmann <stephan.herrmann at berlin.de>
wrote:

> Using javac from build 23-ea+30-2323 this compiles fine and prints
> "f1f1f1f3".
>
> When, however, I enable the innermost access to f1, javac complains:
>
>    error: no enclosing instance of type C1 is in scope
>
> Is this a bug, or am I missing some subtlety from the spec?
>

You're right, I think that's a bug - thanks.

https://bugs.openjdk.org/browse/JDK-8336255

-Archie

-- 
Archie L. Cobbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-spec-experts/attachments/20240711/d51b71a3/attachment.htm>


More information about the amber-spec-experts mailing list