RFR: StateObjectHandler.validateState(): fix typo and optimize [v2]
Sergey Ponomarev
github.com+415502+stokito at openjdk.java.net
Mon Oct 26 15:31:21 UTC 2020
On Mon, 26 Oct 2020 15:22:56 GMT, wangpeipei90 <github.com+4886855+wangpeipei90 at openjdk.org> wrote:
>> is it possible to have two default constructors with empty params? Maybe not in Java but in some alternative language?
>> As far I know this is prohibited.
>> If we can have only one empty param constructor then we can check only it for having a public modifier and then skip others
>
> I was thinking of the case the default constructor is declared explicitly with the `private` modifier. But you are right that a Java class could not have two default constructors with empty params, according to the rule of the method signature. The change is not equivalent, it still fulfills the same purpose.
ok, so if we are fine here then I'll mark the comment as resolved
-------------
PR: https://git.openjdk.java.net/jmh/pull/7
More information about the jmh-dev
mailing list