China warned Japan on Friday to stay out of a growing dispute with its neighbors over the South China Sea, as the Philippines implicitly…