Rupert Grint, who plays Ron Weasley in the Harry Potter series, was forced to take a break from filming the latest instalment titled Harry Potter and the Half-Blood Prince when he was hit by the swine flu.
"It has just been confirmed that Rupert Grint has taken a few days out of filming due to a mild bout of swine flu," thesun.co.uk quoted his publicist as saying.
"He has now recovered and is looking forward to joining his fellow cast members at the junket and premieres this week and will then return to filming directly afterwards," added the publicist.
She said Grint's doctor had confirmed that Rupert had recovered and was no longer contagious or at risk of infecting others.
"Other scenes were shot in his absence which did not require his involvement and thus filming was not disrupted," she added.
Half-Blood Prince will open in most of Europe July 15 and in the US and Japan two days later.