make cb->java work