
824 N.E.2d 636 (2005)
355 Ill. App.3d 225
291 Ill.Dec. 780
The PEOPLE of the State of Illinois, Plaintiff-Appellee,
v.
Richard DYCHES, Defendant-Appellant.
No. 1-02-0900.
Appellate Court of Illinois, First District, Sixth Division.
January 28, 2005.
Michael J. Pelletier, Office of the State Appellate Defender, Chicago (Adolfo Mondragon, of counsel), for Appellant.
Richard A. Devine, Cook County State's Attorney, Chicago (Renee Goldfarb, Manny Magence, and Amit Trivedi, of counsel), for Appellee.
Justice FROSSARD delivered the opinion of the court:
Defendant Richard Dyches pled guilty to first degree murder, armed robbery, and aggravated kidnaping. The circuit court sentenced defendant to natural life in prison for first degree murder and concurrent 30-year prison terms for armed robbery and aggravated kidnaping. On appeal, defendant contends that the circuit court improperly summarily dismissed his pro se "motion for relief from judgment" brought pursuant to section 2-1401 of the Code of Civil Procedure (735 ILCS 5/2-1401 (West 2000)). We affirm.
On October 14, 1998, at the guilty plea hearing, the circuit court admonished defendant, in relevant part, that by pleading guilty he waived the right to a trial by jury to determine his guilt or innocence and his possible sentence. Defendant indicated that he understood. The court then accepted defendant's guilty plea to first degree murder, armed robbery, and aggravated kidnaping and sentenced him to *637 natural life in prison and concurrent 30-year sentences, respectively.[1]
On December 13, 2000, defendant filed a pro se "motion for relief from judgment," which he characterized as a section 2-1401 petition. Defendant alleged in his petition that his sentence was unconstitutional under Apprendi v. New Jersey, 530 U.S. 466, 120 S.Ct. 2348, 147 L.Ed.2d 435 (2000). On January 12, 2001, the circuit court summarily dismissed defendant's petition. Whether the circuit court had the authority to summarily dismiss defendant's petition raises a question of law, and accordingly, our review is de novo. People v. Johnson, 352 Ill.App.3d 442, 444, 287 Ill.Dec. 669, 816 N.E.2d 636 (2004).
On appeal, defendant contends that the circuit court improperly summarily dismissed his section 2-1401 petition, relying primarily on People v. Pearson, 345 Ill.App.3d 191, 280 Ill.Dec. 461, 802 N.E.2d 386 (2003), appeal allowed, 208 Ill.2d 549, 284 Ill.Dec. 344, 809 N.E.2d 1290 (2004). The districts of this court are in dispute as to whether a circuit court may summarily dismiss a defendant's section 2-1401 petition. In Pearson, the Second District held that the circuit court commits reversible error by dismissing a section 2-1401 petition without providing the defendant with notice and an opportunity to respond to the dismissal, and that a reviewing court cannot look beyond the error to assess the merits of the petition. Pearson, 345 Ill.App.3d 191, 280 Ill.Dec. 461, 802 N.E.2d 386. The Second District has held the same in People v. Mescall, 347 Ill.App.3d 995, 1000, 283 Ill.Dec. 813, 808 N.E.2d 1101 (2004), and in People v. Gaines, 335 Ill.App.3d 292, 295-96, 269 Ill.Dec. 350, 780 N.E.2d 822 (2002). See also People v. Keller, 353 Ill.App.3d 830, 289 Ill.Dec. 405, 819 N.E.2d 1205 (2004) (summary dismissal of motion for declaratory judgment improper; harmless error did not apply); People v. Winfrey, 347 Ill.App.3d 987, 283 Ill.Dec. 623, 808 N.E.2d 589 (2004) (trial court may not summarily deny a habeas corpus petition); People v. Shellstrom, 345 Ill.App.3d 175, 280 Ill.Dec. 456, 802 N.E.2d 381 (2003) (trial court may not summarily dismiss a mandamus complaint), appeal allowed, 208 Ill.2d 552, 284 Ill.Dec. 345, 809 N.E.2d 1291 (2004).
Pearson rejected the summary dismissal of the section 2-1401 petition because the defendant received neither notice nor the opportunity to respond to the dismissal of his petition. The court held as follows:
"The process of judicial review of a petition under the [Post-Conviction Hearing] Actwithout comment by either partyis a significant and unusual departure from the adversary process. The legislature has mandated that departure in the specific context of the Act. We see no possible basis for importing such an unusual procedure into matters governed by the Code of Civil Procedure." Pearson, 345 Ill.App.3d at 194, 280 Ill.Dec. 461, 802 N.E.2d 386.
The Pearson court further rejected the State's harmless error analysis:
"Despite the predictability of the ultimate dismissal of this petition, we think that the procedure by which the trial court dismissed it was simply too far removed from what defendant was entitled *638 to for us to review the matter as if defendant had been given notice and an opportunity to answer." Pearson, 345 Ill.App.3d at 196, 280 Ill.Dec. 461, 802 N.E.2d 386.
On the other hand, the Fourth District has held that a circuit court has the inherent authority to dismiss a section 2-1401 petition sua sponte if it is frivolous and without merit. People v. Bramlett, 347 Ill.App.3d 468, 472, 282 Ill.Dec. 663, 806 N.E.2d 1251 (2004). The court in Bramlett analogized to post-conviction cases and concluded it was not unfair to dismiss a section 2-1401 petition without notice and an opportunity to be heard because summary dismissal of post-conviction petitions did not violate due process. Bramlett, 347 Ill.App.3d at 472-73, 282 Ill.Dec. 663, 806 N.E.2d 1251. See also Mason v. Snyder, 332 Ill.App.3d 834, 839-43, 266 Ill.Dec. 351, 774 N.E.2d 457 (2002), appeal denied, 205 Ill.2d 587, 281 Ill.Dec. 80, 803 N.E.2d 484 (2003) (summary dismissal of mandamus petition proper).
In the First District, the third and fourth divisions have held that summary dismissal of a section 2-1401 petition is proper where the petition raises a pure question of law and the defendant incurs no prejudice from the dismissal based on the frivolous claims in the petition. People v. Schrader, 353 Ill.App.3d 684, 687-88, 289 Ill.Dec. 713, 820 N.E.2d 489 (1st Dist., 3d Div. 2004); People v. Taylor, 349 Ill.App.3d 718, 720, 285 Ill.Dec. 761, 812 N.E.2d 581 (1st Dist., 4th Div.2004). The First District has allowed summary dismissal in similar situations in People v. Johnson, 352 Ill.App.3d 442, 287 Ill.Dec. 669, 816 N.E.2d 636 (1st Dist., 1st Div.2004) (because section 2-1401 petition was in substance a post-conviction petition, summary dismissal was proper), People v. Carroll, 351 Ill.App.3d 972, 287 Ill.Dec. 263, 815 N.E.2d 907 (1st Dist., 6th Div.2004) (summary denial of habeas corpus petition proper where defendant did not raise any legal argument or cite legal authority to support his claim and no prejudice resulted from summary dismissal), and Owens v. Snyder, 349 Ill.App.3d 35, 285 Ill.Dec. 251, 811 N.E.2d 738 (1st Dist., 2d Div.2004) (summary dismissal of mandamus petition proper where found to be frivolous and no prejudice was incurred by defendant).
In People v. Anderson, 352 Ill.App.3d 934, 942, 288 Ill.Dec. 350, 817 N.E.2d 1000 (2004), the First Division of the First District concurred with Pearson in finding that it is unfair to a defendant, when faced with the proposed dismissal of his section 2-1401 petition, to be deprived of notice and an opportunity to respond. The Anderson decision articulated various reasons for prohibiting the use of the summary dismissal procedure, including the fact that notice and an opportunity to respond are fundamental principles of justice. Anderson, 352 Ill.App.3d at 942, 288 Ill.Dec. 350, 817 N.E.2d 1000. Anderson also noted that the legislature expressly provided for the summary dismissal of a post-conviction petition in the Post-Conviction Hearing Act (725 ILCS 5/122-1 et seq. (West 2000)), but did not do so in section 2-1401. Anderson, 352 Ill.App.3d at 944-45, 288 Ill.Dec. 350, 817 N.E.2d 1000. The court emphasized that summary dismissal, which is a drastic procedure, should not be read into the procedures provided by section 2-1401. Anderson, 352 Ill.App.3d at 945, 288 Ill.Dec. 350, 817 N.E.2d 1000. Anderson, however, then departed from Pearson and its progeny by holding that the harmless error analysis should still be applied where the defects are patently incurable. Anderson, 352 Ill.App.3d at 946-47, 288 Ill.Dec. 350, 817 N.E.2d 1000. The court reasoned that where the dismissal of the petition is inevitable and further proceedings *639 in the circuit court would have little remedial effect and only delay dismissal, the summary dismissal should be affirmed based on harmless error. Anderson, 352 Ill.App.3d at 947-48, 288 Ill.Dec. 350, 817 N.E.2d 1000. The court explained that its application of the harmless error analysis was consistent with the general duty of the reviewing court to consider the record as a whole and ignore harmless errors. Anderson, 352 Ill.App.3d at 948, 288 Ill.Dec. 350, 817 N.E.2d 1000.
Notably, two justices wrote separate, special concurrences in Anderson. Both concurred with the majority's decision in affirming the summary dismissal but disagreed with the finding that the circuit court erred in summarily dismissing the petition on procedural grounds. Anderson, 352 Ill.App.3d at 948-49, 288 Ill.Dec. 350, 817 N.E.2d 1000 (McBride, J., specially concurring), 949-52 (O'Malley, P.J., specially concurring). It also should be noted that since Anderson was filed, the First Division of the First District, in People v. Sargent, ___ Ill.App.3d ___, ___ Ill.Dec. ___, ___ N.E.2d ___, No. 1-03-2096, 2005 WL 1278278 (1st Dist., 1st Div. May 31, 2005), reiterated Anderson's holding that summary dismissal, even if regarded as procedurally erroneous, remains subject to harmless error analysis, although Sargent addressed summary dismissal of a post-conviction petition, not summary dismissal of a section 2-1401 petition.
We follow the well-reasoned approach taken in Anderson regarding application of the harmless error analysis. We agree with Anderson that summary dismissal, which is a drastic procedure, should not be incorporated into the procedures provided by section 2-1401. See Anderson, 352 Ill.App.3d at 945, 288 Ill.Dec. 350, 817 N.E.2d 1000. We hold, following Anderson, that harmless error analysis should be applied where defects in a section 2-1401 petition are patently incurable.
In the instant case, the inherent defects in the 2-1401 petition are patently incurable. Here, defendant pled guilty and then filed a section 2-1401 petition in which he alleged his sentence was unconstitutional under Apprendi. The circuit court summarily dismissed defendant's petition without comment. Our supreme court has held that a guilty plea waives any Apprendi-based claims. People v. Townsell, 209 Ill.2d 543, 546, 548, 283 Ill.Dec. 910, 809 N.E.2d 103 (2004), citing People v. Jackson, 199 Ill.2d 286, 296, 263 Ill.Dec. 819, 769 N.E.2d 21 (2002). We find in the present case that regardless of whether the circuit court erred in failing to provide defendant with notice and an opportunity to be heard, defendant could not have cured the inherent defects in his 2-1401 petition because he could not allege any facts that would circumvent our supreme court precedent and make his sentence subject to Apprendi. The dismissal of the petition was inevitable and further proceedings would only have delayed that result. See Anderson, 352 Ill.App.3d at 947-48, 288 Ill.Dec. 350, 817 N.E.2d 1000. Accordingly, any procedural error was harmless.
For the reasons previously discussed, we affirm the circuit court's judgment.
Affirmed.
McNULTY and TULLY, JJ., concur.
NOTES
[1]  Defendant committed the crimes with codefendants Dennis Soto and Anthony Spencer. This court affirmed codefendant Soto's conviction and sentence. People v. Soto, No. 1-98-1069, 307 Ill.App.3d 1075, 260 Ill.Dec. 290, 760 N.E.2d 1063 (1999) (unpublished order under Supreme Court Rule 23). This court affirmed as modified codefendant Spencer's conviction and sentence. People v. Spencer, No. 1-99-0155, 313 Ill.App.3d 1094, 266 Ill.Dec. 998, 775 N.E.2d 1070 (2000) (unpublished order under Supreme Court Rule 23).
