Draft Spec for Second Preview of Flexible Constructor Bodies (JEP 482)
Archie Cobbs
archie.cobbs at gmail.com
Fri Jul 12 01:09:29 UTC 2024
Hi Stephan,
It turns out that this bug is already fixed, but this fix is still waiting
in the PR hopper...
I've resolved it as a duplicate of JDK-8334248
<https://bugs.openjdk.org/browse/JDK-8334248>.
FYI here is the list of bugs related to this early initialization stuff
<https://bugs.openjdk.org/browse/JDK-8334248?jql=labels%20%3D%20javac-pre-capture%20ORDER%20BY%20status%20ASC>
.
-Archie
On Thu, Jul 11, 2024 at 8:56 AM Archie Cobbs <archie.cobbs at gmail.com> wrote:
> 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
>
--
Archie L. Cobbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-spec-experts/attachments/20240711/8af5173a/attachment-0001.htm>
More information about the amber-spec-experts
mailing list