contrib/jwrapper: fix parameter-less methods right after the constructor