J -self-adjointness of a class of Dirac-type operators