RFR: 8278078: cannot reference super before supertype constructor has been called [v2]
Adam Sotona
asotona at openjdk.java.net
Wed Dec 1 20:35:10 UTC 2021
On Wed, 1 Dec 2021 16:49:08 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> And there are three possible contexts:
>
> a. constructors (this/super calls)
> b. static
> c. non-static
I'm actually not quite sure what the b. static and c. non-static contexts exactly mean in a context of this issue and how is it related with the bug subject "cannot reference super before supertype constructor has been called".
This only specifically failing case (constructor with super call to enclosing class) has been identified from the large regression compilation Corpus experiment.
I would prefer to track improvements in the actual test coverage as a separate issue, mainly to don't block this specific quick regression fix and have more time to design the test matrix more precisely.
Thanks,
Adam
-------------
PR: https://git.openjdk.java.net/jdk/pull/6642
More information about the compiler-dev
mailing list