BEIJING - Japan has told China that a Maritime Self-Defense Force destroyer that sailed into Chinese territorial waters in July despite repeated warnings by Chinese vessels did so inadvertently, diplomatic sources said Sunday, adding that the captain has been replaced for what was viewed as a serious error.