The terms of the four city magistrates mentioned in the petition concededly expired on the last day of April, 1901. Thereupon it became the duty of the mayor by a mandatory provision of the city charter (sec. 1394) to appoint their successors. The legislature this year by the amended city charter (sec. 1392) purported to extend the terms of the said magistrates until January 1, 1902. But this is violative of section 2 of article X of the state constitution, which requires in so many words that existing city officers shall be elected by the' electors of the city, or some division thereof, or appointed by such' authorities thereof as the legislature shall designate. It has so often been declared by our highest court that an act of the legislature prolonging an incumbent’s term to an office which can be filled only by election or appointment as prescribed in the said constitutional provision is in effect an appointment by the legislature, and therefore void, that it is not a subject for discussion (People ex rel. Fowler v. Bull, 46 N. Y. 57; People ex rel. Williamson v. McKinney, 52 N. Y. 374; People ex rel. Lord v. Crooks, 53 N. Y. 648; People ex rel. Le Roy v. Foley, 148 N. Y. 677; People ex rel. Lovett v. Randall, 151 N. Y. 497; People ex rel. Eldred v. Palmer, 154 N. Y. 133). The duties and office of magistrate existed at the time of the adoption of the said constitutional provision; indeed, they have existed from time immemorial. That such duties have been transferred by statute from the former magistrates to magistrates with a new name since the last constitution was adopted, does not change the case. The said provision covers and protects the duties of the office in all their transfers by the legislature to newly created officials, and such officials have to be elected or appointed in the said manner prescribed therein, i. e., by the electors of the city or some official or officials thereof (Warner v. People, 2 Denio, 272; People v. Pinckney, 32 N. Y. 377; People v. Raymond, 37 N. Y. 428; People ex rel. Bolton v. Albertson, 55 N. Y. 50). In this case the appointment is by the legislature. In respect of the duty of the mayor to appoint, this act of the legislature is as though it did not exist; and his neglect to appoint would aid the legislature to override the constitution and keep officials illegally in office.
*212The right of the petitioner as an elector of the city to a writ of mandamus to require the official duty of appointment to be performed is also beyond dispute (People ex rel. Boltzer v. Daley, 37 Hun, 461; People ex rel. Stephens v. Halsey, 37 N. Y. 344; People ex rel. Kelly v. Common Council, 77 N. Y. 503; People ex rel. Eldred v. Palmer, 154 N. Y. 133; People ex rel. Miller v. Cummings, 72 N. Y. 433). The electors have the right to have these offices filled as required by law.
Let a peremptory writ issue that the appointments be made within two days.