Loosening requirements for super() invocation

Archie Cobbs archie.cobbs at gmail.com
Thu Jan 26 17:13:36 UTC 2023


On Thu, Jan 26, 2023 at 10:59 AM Brian Goetz <brian.goetz at oracle.com> wrote:

> As we look at the implications of this, though, we start to see that the
> cost/risk/complexity keeps cropping up in the lower-value aspects.  To
> summarize, here are the things you originally proposed to align:
>
>  - Allowing statements before the this/super;
>  - Choosing different super/this ctors in different paths;
>  - Initializing fields prior to this being DA.
>

I think we all agree on #1.

I agree that #2 is "niche" and therefore should be included ONLY if it's
not the singular cause of a bunch of additional spec noise. Personally I
"believe" you (air quotes) that it would be, but also want to see for
myself... I'm sure you'll be proved right...  and for now will leave that
to others to argue.

Seems like there's still some valid debate (not just from me) about #3
though... ?

-Archie

-- 
Archie L. Cobbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20230126/219a1e4d/attachment.htm>


More information about the amber-dev mailing list