Fix Java Override build error.