TOKYO - Japan's top national security adviser and his Chinese counterpart have agreed in talks that the countries will continue dialogue toward building constructive and stable bilateral ties, regardless of heightened tensions over Taiwan, their governments said Thursday.