JDK-8300786 - No longer require super() and this() to appear first in a constructor
Archie Cobbs
archie.cobbs at gmail.com
Tue Feb 7 23:10:23 UTC 2023
True :)
On Tue, Feb 7, 2023 at 4:49 PM Brian Goetz <brian.goetz at oracle.com> wrote:
> That's a nice side-effect of sticking to something the spec already talks
> about!
>
> On 2/7/2023 5:48 PM, Archie Cobbs wrote:
>
>
>
> Regarding the prototype implementation
> <https://urldefense.com/v3/__https://github.com/archiecobbs/jdk/tree/SuperInit__;!!ACWV5N9M2RV99hQ!OGVhm6i6QDrc9mSIWiQZl0tp7ako7UOLnijWXkOAvtL9HJtXK5T8mzMk9-QE9NajR64Fjqx1HsTbTkdwQ-bZP5w$>,
> it's complete and seems to be working. One nice surprise is that, because
> the compiler already effectively implements this notion of
> "pre-initialization context" within superclass constructors, the changes
> required are relatively limited, in some cases, just ensuring the
> appropriate error message is generated.
>
>
>
--
Archie L. Cobbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-spec-observers/attachments/20230207/acfb766e/attachment-0001.htm>
More information about the amber-spec-observers
mailing list