fix java6 compilation issue