RFR: 8266436: Synthetic constructor trees have non-null return type
Vicente Romero
vromero at openjdk.java.net
Mon May 3 18:00:48 UTC 2021
On Mon, 3 May 2021 16:54:41 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> When javac generates the AST for default (synthetic) constructor, it will create a return type `void` for them, while for ordinary constructors, it uses `null` as the return type. This change proposes to consistently use `null` as the return type of constructors. (Eventually, we might want to avoid generating the synthetic constructor tree.)
looks good
-------------
Marked as reviewed by vromero (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/3842
More information about the compiler-dev
mailing list