Fоllowing a jury trial in the Circuit Court of the City of Virginia Beach conducted in January 1995, appellant, Martin Herrera, Jr., was convicted of child neglect in violation of Code § 40.1-103. Herrera’s opening brief on appeal, challenging the trial court’s refusal to instruct the jury on criminal negligence, was received by the Clerk of this Court in November 1995. In October 1995, in an unrelated case, a panel of this Court held portions of Code § 40.1-103 unconstitutionally vague.
See Commonwealth v. Carter,
I. RELEVANT FACTS
Herrera’s indictment alleged that “while having custody of [C.H.], a child then under the age of eighteen years, , [Herrera] did willfully or negligently cause or рermit such child to be placed in a situation that his life, health, or morals may be *493 endangered[, in violation of Code § 40.1-103]....” 2 The jury convicted Herrera as charged, having found, as the trial court instructed, that he “willfully or negligently caused or permitted such child to be placed in a situation that its health or morals may be endangered.”
Subsequent to Herrera’s conviсtion, while his case was pending on direct review, a panel of this Court held that the provision of Code § 40.1-103 declaring it a Class 6 felony “for any person ... having custody of any child ... to ... willfully or negligently ... cause or permit such child to be placed in a situation that its life, health or morals may be endangered” was unconstitutionally vague.
Commonwealth v. Carter,
II. JURISDICTIONAL BAR
“A court lacks jurisdiction to enter a criminal judgment if the judgment is predicated upon an unconstitutional or otherwise invalid statute or ordinance.”
Fraser v. Commonwealth,
Following Carter, the courts of Virginia clearly lack jurisdiction to convict an accused under the provisions of Code *494 § 40.1-103 that Carter held to be unconstitutional. The Commonwealth does not dispute this point. The question we face here is whether that jurisdictional bar also extends to a conviction obtаined prior to the date of the Carter decision but one which is still pending on direct review.
“[A] new rule for the conduct of criminal prosecutions is to be applied retroactively to all cases, state or federal, pending on direct review or not yet final, with no exception for cases in which the new rule constitutes a ‘clear break’ with the past.”
Darnell v. Commonwealth,
In light of these principles, we find that the rule of Carter, undoubtedly a “new rule” for prosecutions under Code § 40.1-103, should be аpplied retroactively to Herrera’s case. The provision of Code § 40.1-103 which this Court held unconstitutionally void for vagueness in Carter is precisely the provision on which Herrera was indicted, the jury was in *495 structed, and Herrera was ultimately convicted. By virtue of the retroactive application of Carter, we hold that the trial court lacked jurisdiction to convict Herrera.
III. PROCEDURAL BAR
The Commonwealth contends that even if the principles governing the retroactive application of new rules for criminal prosecution require that Carter be applied retroactively to a case still pending on direct review, the rule of Carter should not be applied retroactively to Herrera’s case because Herrera failed to preserve the issue. Indeed, Herrera failed to challenge the constitutionality of Code § 40.1-103, both before the trial court and in his appellate brief; he also failed to argue on appeal that we should aрply the holding in Carter to his case.
It is well accepted that a question of subject matter jurisdiction can be raised
sua sponte
at any time.
E.g., Garrett v. Majied,
*496 Our decision to apply the jurisdictional implications of Carter to Herrera’s case is limited both by the procedural posture of Herrera’s case and by well established principles concerning retroactive application of new rules for criminal prosecutions. Contrary to the Commonwealth’s concern regarding the potential effect of our decision on concluded cases, thе retroactive application of Carter to a case pending on direct review does not disturb well-settled principles of finality. Rather, our decision еffectuates the balance between finality and fairness that the principles of retroactivity seek to establish.
While the provisions of the statute under which Herrera was convicted were presumptively valid at the time of his trial, they are conclusively unconstitutional now and were so before he filed his appellate brief. We find that the principles applicable to the jurisdiction of the trial court and the retroactive application of new rules for criminal prosecutions as well as the imperative demands of fairness and equity demand that Herrera’s conviction be reversed and dismissed.
Reversed and dismissed.
Notes
. Accordingly, wе decline to address Herrera’s contention that the trial court erred by refusing to instruct the jury on criminal negligence.
. Code § 40.1-103 provides, in part:
It shall be unlawful for any person ... having the custody of any child willfully or negligently to cause or permit the life of such child to be endangered or the health of such child to be injured, or willfully or negligently to cause оr permit such child to be placed in a situation that its life [or] health ... may be endangered.... Any person violating this section shall be guilty of a Class 6 felony.
. Contrary to the Commonwealth’s contention, we do not hold that a defendant may raise a facial challenge to the constitutionality of a statute for the first time on appeal, on the theory that doing so implicates a question of subject matter jurisdiction. Nor does our decision require reviewing courts to determine thе constitutionality of a statute sua sponte in all cases where the issue is not raised. The circumstances giving rise to such concerns in Baucum, upon which the Commonwealth relies, аre not present here. Herrera does not ask us to rule on the constitutionality of Code § 40.1-103 for the first time on appeal, nor do we rule on the constitutiоnal issue sua sponte. Here, unlike in Baucum, the constitutional issue has been resolved. Carter held the provisions of Code § 40.1-103, under which Herrera was convicted, unconstitutional. The issue addressed and resolved here is purely jurisdictional, and our decision is consistent with well established principles regarding the authority of the court to address matters of subject matter jurisdiction sua sponte.
