RFR: 8194743: Compiler implementation for Statements before super() [v16]

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Sep 29 08:34:09 UTC 2023


On Thu, 28 Sep 2023 16:11:39 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:

>> @mcimadamore Yes, I like the first. Something like "explicit constructor invocation may only appear within a constructor body" is good.
>> 
>> (The JLS actually says that an (explicit) constructor invocation, i.e. this(...) or super(...), is not a statement, but just a thing that can appear in a constructor body.)
>
> Updated error messages in 738c10a57de.

Good job! I like the new messages.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/13656#discussion_r1341070884


More information about the compiler-dev mailing list