Malaysian top seed Lee, who had almost missed the Games because of an ankle injury, faded a little from the middle of the second game, allowing Lin's magnificent range of strokes to flourish.
It was China's fourth gold medal, keeping alive its chances of becoming the first nation ever to win all five.