A residency rule would correct that anomaly.
Ed Joyce contributed amply to domestic and international cricket in this country (even securing dispensation to represent the team at the ICC Trophy in 2005, when he was under no obligation to do so) and deserves his shot at Test cricket.
Likewise, the foreign-born nationals in the Irish cricket team (all contracted to Irish clubs) have also enriched the game here, helped develop its emerging talent, and earned the right to represent it internationally. They're not fly-by-night opportunists like those who proliferate in other sports.