Putting in some good knowledge here, Judd, and showing your workings which is always to be commended
He did lose to Barry in 2004; interestingly, Barry, on only his second Crucible appearance THIRTEEN years after his first (L 3-10 to Terry Griffiths in ‘91) bt. Jimmy (seeded 15) 10-8 in the first round and very nearly did the same to Hendry (seeded 2) in Round 2, taking him the distance.
So you have correctly identified 2005 as the year in question. The opponent was not Joe Swail - he had gone down 8-10 to Shaun Murphy in the final qualifying round (the year, of course, that Murphy went on his fairytale run form the Quallies to the title)
Jimmy and Joe only met once at the Crucible, in the first round in 1993, with Jimmy winning 10-4 on his way to second place that year.