Access transformer targeting record class PrivateRecord attempts to widen its access without widening the constructor's access. You must AT the constructor too: "public PrivateRecord (I)V" at PUBLIC LEAVE {atpath}:9