Opinion ID: 1142688
Heading Depth: 1
Heading Rank: 3

Heading: Habeas Corpus as Proper Remedy.

Text: (1) Habeas corpus is available to obtain relief from unlawful restraint occasioned by a void judgment or order. (Pen. Code, § 1473.) Although the writ is not a substitute for appeal ( In re Walker (1974) 10 Cal.3d 764, 773 [112 Cal. Rptr. 177, 518 P.2d 1129]), the YA commitment order challenged here was not a final judgment subject to appeal. (§ 704, 800.) Because the challenge is to the court's jurisdiction to make the order, the minor's failure to object to the conduct of the rehearing by the juvenile court judge did not constitute a waiver. ( Griggs v. Superior Court (1976) 16 Cal.3d 341, 344, fn. 2 [128 Cal. Rptr. 223, 546 P.2d 727].)