after stating the case, delivered the opinion of the court.
It is undoubtedly the general rule that a judgment rendered by a court in a criminal case must conform strictly to the statute, and that any variation from its provisions, either in the character or the^extent of punishment inflicted, fenders the judgment absolutely void; but it seems that under the law of Wisconsin a judgment in a criminal case which merely exceeds in the time of punishment prescribed by the sentence that which is authorized by law, is not absolutely void, but only erroneous, and that the error, must be corrected on appeal and cannot be corrected by a writ of habeas corpus. It would seem that a distinction is there’ made between those cases in which' the judgment is irregular, as being in excess of-the time prescribed, and those in which- it is void as changing the nature of the punishment from that authoriz- d by +he law; and that in the formti class, until the time is reached which is prescribed by statute as the limit of the power of the court to punish the prisoner,- he has no remedy by habeas corpus.
If such -be the law of the State; as would appear by this decision and the argument of counsel, we do not- see that we *463 iave any right to interfere. That the prisoner should not have been sentenced for any time in excess of ten years, is very evident. When the ten years have expired it is probable the court will order the prisoner’s discharge, but until then he has no right to ask the annulment of the entire judgment. Such being the ruling of the State court, and there being nothing in it repugnant to any principle of natural justice, we think that the reason given for a refusal of the writ of habeas corpus in the court below at the present time was a sound one.
Nor is the doctrine of the Wisconsin court peculiar to the courts of that State. In New York it has been held that a judgment in a criminal case, which in the punishment it imposed exceeded that prescribed by statute, was not void except for the excess, where such excess could be omitted in the execution of the judgment. Thus, in
The People
v. Baker,
But were the general doctrine of other States against that held by the'bighest court-of Wisconsin, it i^taot perceived how *464 we cóuld interfere with the imprisonment of the plaintiff in error. When the highest court of a State holds that a judgment of one of its inferior courts imposing punishment in a criminal case is valid and binding to the extent in' which the law of the State authorized the punishment, and only void for the excess, we cannot treat' it as wholly void, there being no principle of federal law invaded in such ruling.
Judgment affirmed.
