The two countries are close economic partners but have long been embroiled in maritime disputes in the South China Sea, where they have overlapping claims. They also fought a brief border war in 1979