delivered the opinion of the court:
Dеfendant pleaded guilty to and was convicted of criminal damage to property and burglary in the circuit court of St. Clair County and was fined $46 plus court costs for the criminal-damage-to-propеrty conviction and sentenced to four years in prison for the burglary conviction. On appeаl, defendant contends that the failure of the State to prosecute him for burglary at the time it prosecuted him for criminal damage to property rendered the burglary conviction improper under the compulsory-joinder statute, which requires that all offenses based on the same act bе prosecuted in a single prosecution if the offenses are known to the prosecuting officer at the time the prosecution is commenced so long as the offenses are within the jurisdiction of a single court. Ill. Rev. Stat. 1981, ch. 38, pars. 3 — 3, 3 — 4.
Defendant was charged with misdemeanor criminal damage tо property on November 24, 1981, for knowingly damaging an outside window ornament at apartment 32C of the Roosevelt Homes in East St. Louis on November 23, 1981, and for knowingly damaging a wall and fuse box inside apartment 32B оf the Roosevelt Homes on that same date. On January 20, 1982, defendant pleaded guilty to both charges and was fined $46 plus court costs. On March 18, 1982, defendant was indicted for burglarizing apartment 32B of the Roosеvelt Homes on November 23, 1981. Defendant’s motion to dismiss the burglary charge for violating double jeopаrdy was denied on May 18, 1982, because no evidence was presented that the two offenses werе known to the proper prosecuting officer at the time of the commencement of the prosecution. Defendant then pleaded guilty to the burglary charge on June 14, 1982, and was sentencеd to four years in prison. Defendant’s motion to withdraw his guilty plea and vacate the conviction wаs denied on September 20,1982.
The State argues that by voluntarily pleading guilty to the burglary charge, defendаnt waived his claim that his conviction and sentence should be vacated and, further, that in any event thе record does not support the defendant’s allegations that the compulsory joinder statutе was violated. Unless there is plain error, a voluntary guilty plea waives all nonjurisdictional errors, including violations of constitutional rights. (People v. Weathers (1980),
The charging instrument for the criminal-damage-to-property charge describes the offense as follows: “Knowingly damaged property of Virgil L. Calvert, DBA, East St. Louis Housing Authority, namely the wаll and fuse box inside of 32B Roosevelt Homes ***.” The burglary charge is based on the fact that the wires to thе fuse box were cut, thus indicating an attempt to remove it from the wall. It can be inferred from these fаcts that both the burglary charge and the criminal-damage-to-property charge were based on the same physical act. It can also be inferred from the record that the propеr prosecuting officer knew that there was sufficient evidence to charge defendant with burglary at the time he was charged with criminal damage to property. The wires had been cut at the samе time the damage to the wall and fuse box occurred. There is no reason to suspect that the prosecutor was not fully aware of the facts surrounding the investigation of the criminal-damage-tо-property charge, including the fact that the fuse box wires had been cut. We must find, therefore, that thе prosecutor’s failure to commence prosecution on the burglary charge at the time that prosecution on the criminal-damage-to-property charge was begun violated sections 3 — 3 and 3 — 4 of the Criminal Code of 1961 (Ill. Rev. Stat. 1981, ch. 38, pars. 3 — 3, 3 — 4) and thus placed defendant in double jeoрardy. The prejudice to defendant is obvious. Had the burglary charge been dismissed at the outset as it shоuld have been, defendant’s punishment would not have been four years in prison plus a fine, but would have bеen limited to the fine.
For the above reasons, we reverse the burglary conviction entered by the circuit court of St. Clair County.
Reversed.
JONES and HARRISON, JJ., concur.
