[Resend] Draft Spec for Statements before Super() (JEP 447)

Archie Cobbs archie.cobbs at gmail.com
Tue May 30 15:39:54 UTC 2023


On Thu, May 18, 2023 at 2:33 PM Alex Buckley <alex.buckley at oracle.com>
wrote:

> However, the draft does not address how JLS20, at
>
>
> https://docs.oracle.com/javase/specs/jls/se20/html/jls-8.html#jls-8.10.4-500
>
> says
>
> "A record declaration may contain declarations of constructors that are
> not canonical constructors. The body of every non-canonical constructor
> in a record declaration must *start with* an alternate constructor
> invocation (§8.8.7.1), or a compile-time error occurs."
>
> I assume the intent is to allow a non-canonical ctor in a record
> declaration to *contain* an alternate ctor invocation, not just *start
> with*? If so, please amend 8.10.4 in the draft.
>

Good catch - I agree that changing "start with" to "contain" is the right
fix.

Gavin, will you update the spec draft please?

-Archie

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


More information about the amber-spec-experts mailing list