These analysts who tout China live in 2008 China. And they ignore Xi Jing Ping + demographics + middle income trap + total debt as if they doesn't exist.
Even the population going down isn't really an issue, they have more poor people to take out of poverty than the entire US population, so more than enough labor force. Plus if their population declined 50% (a super far fetched scenario that could happen over an entire century), they will still have 2x the US population.
For most individuals living in China will still be mediocre to bad, but that's still enough for them to create in aggregate an economy 2x the US one.
Japan just couldn't do this, they were always smaller than the US.