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

Archie Cobbs acobbs at openjdk.org
Tue Aug 22 14:08:18 UTC 2023

On Tue, 22 Aug 2023 03:06:18 GMT, Julian Waters <jwaters at openjdk.org> wrote:

> Is this all clear for sponsorship?

Not sure if you're asking me or not, but from my perspective, yes - at least technically speaking.

> Just curious, is it worth adding a test case where we call super multiple times or in a control flow

Happy to add it if you like. That example fails two of the checks [here](https://github.com/archiecobbs/jdk/blob/e2f881373e8e01309b8d34802b4d13b4b8bf9efe/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java#L4043): (a) all `super()` invocations must be "top level", and (b) there can only be one `super()` statement.


PR Comment: https://git.openjdk.org/jdk/pull/13656#issuecomment-1688213639

More information about the compiler-dev mailing list