This type of name was common with naming royalty in the countries of Japan and China . They were also sometimes used in Vietnam and Korea . The posthumous name is commonly used when naming royalty of China , Korea , Vietnam , and Japan .