Any Hong Kong permanent resident aged 18 or above may register as an elector in the geographical constituency in which they reside, except those mentally incapacitated and those serving in an armed force. Persons serving a sentence of imprisonment used to be barred from registering and voting, but a 2008 judgment by the Court of First Instance of the High Court ruled that a blanket bar was unconstitutional and that the Government had a year to change the offending provisions. The Government did not appeal the judgment, and held consultations with the public on how the law should be changed. A bill was then introduced to the LegCo, providing that no person would be barred from electoral registration or voting because of criminal conviction, even for crimes against the electoral system. It became law and entered into force on 30 October 2009.