China-Japan relations are strained over Taiwan after a Japanese official said a Chinese attack on Taiwan could threaten Japan's survival.