A high court today jailed a man for more than five years for having sex with a 12-year-old girl, following outrage over an earlier verdict to free him on probation.