Login
  • Bookmark
  • PDF
  • Share
  • CaseIQ

WELLS v. MARINA CITY PROPERTIES, INC

Supreme Court of California.
Aug 6, 1981
Important Paras
Please sign up to view Important Paras.
Smart Summary (Beta)

Factual and Procedural Background

This opinion arises from an appeal in a civil action where the defendants' general demurrer to the plaintiff's second amended complaint was sustained with leave to amend. The plaintiff failed to amend within the extended time allowed. Defendants then filed a noticed motion seeking dismissal with prejudice pursuant to Code of Civil Procedure section 581, subdivision 3. Meanwhile, the plaintiff filed a request for voluntary dismissal without prejudice under subdivision 1 of the same section. The trial court initially granted defendants' motion for dismissal with prejudice, then reversed itself, setting aside that order on the basis that the plaintiff's voluntary dismissal divested the court of jurisdiction. Defendants appealed from the latter ruling.

Legal Issues Presented

  1. Whether a plaintiff may voluntarily dismiss an action without prejudice under Code of Civil Procedure section 581, subdivision 1, after a demurrer has been sustained with leave to amend and the plaintiff has failed to amend within the time allowed.
  2. How to reconcile the apparent conflict between subdivision 1 and subdivision 3 of section 581 regarding dismissal rights and timing.
  3. When does the "actual commencement of trial" occur for purposes of voluntary dismissal under subdivision 1, particularly in relation to trial court rulings on demurrers sustained with leave to amend.
  4. Whether the court retains jurisdiction to grant dismissal with prejudice under subdivision 3 after a plaintiff has filed a voluntary dismissal under subdivision 1 but has not amended the complaint following a sustained demurrer with leave to amend.

Arguments of the Parties

Appellant's Arguments (Defendants)

  • The defendants contend that after a demurrer is sustained with leave to amend and the plaintiff fails to amend within the time allowed, the defendant is entitled to dismissal with prejudice under subdivision 3 of section 581.
  • They argue that the plaintiff's attempt to voluntarily dismiss without prejudice under subdivision 1 after this point is improper and should not divest the court of jurisdiction.
  • The defendants rely on the principle that allowing voluntary dismissal after a sustained demurrer without amendment would lead to duplicative and vexatious litigation, contrary to legislative intent.

Respondent's Arguments (Plaintiff)

  • The plaintiff argues that the 1947 amendment to subdivision 1 of section 581, which defines the "actual commencement of trial," preserves the right to voluntary dismissal without prejudice until trial actually begins.
  • The plaintiff relies on cases such as United Shippers, Inc. v. Superior Court and Parenti v. Lifeline Blood Bank to support the proposition that the voluntary dismissal right exists even after a demurrer has been sustained with leave to amend but before trial has commenced.
  • He contends that the voluntary dismissal properly filed divested the court of jurisdiction to grant dismissal with prejudice.

Table of Precedents Cited

Precedent Rule or Principle Cited For Application by the Court
Goldtree v. Spreckels (1902) 135 Cal. 666 Defined "trial" to include hearings on demurrers; established that voluntary dismissal right ends once demurrer is sustained without leave to amend and judgment entered. Court reaffirmed that sustaining a demurrer with leave to amend but no amendment within time effectively ends plaintiff’s right to voluntary dismissal without prejudice; Goldtree remains controlling.
United Shippers, Inc. v. Superior Court (1980) 104 Cal.App.3d 359 Held plaintiff has absolute right to voluntary dismissal prior to court ruling on demurrer. Court distinguished this case because there the demurrer was undecided when dismissal was filed; disapproved language suggesting voluntary dismissal after demurrer ruling.
Parenti v. Lifeline Blood Bank (1975) 49 Cal.App.3d 331 Discussed voluntary dismissal after demurrer sustained without leave to amend; held no appealable judgment existed on demurrer order alone. Dictum suggesting voluntary dismissal deprives court of jurisdiction after demurrer was disapproved by the court as inconsistent with legislative intent.
Berri v. Superior Court (1955) 43 Cal.2d 856 Confirmed that sustaining a demurrer without leave to amend constitutes a trial for purposes of dismissal timing. Supported the court’s view that the 1947 amendment to subdivision 1 did not alter the rule that sustaining a demurrer without leave to amend ends voluntary dismissal rights.
Casner v. Daily News Company, Ltd. (1940) 16 Cal.2d 410 Expressed concern about wasting judicial resources through repeated voluntary dismissals after adverse rulings. Used to support policy reasons against allowing voluntary dismissal after demurrer sustained without amendment.
Keidatz v. Albany (1952) 39 Cal.2d 826 Clarified that dismissal with prejudice on demurrer adjudicates the merits to the extent of the sufficiency of the pleading but does not bar actions based on new facts. Informed the court’s holding that dismissal with prejudice under subdivision 3 is a judgment on the merits limited to the sufficiency of the allegations.
People ex rel. Younger v. Superior Court (1976) 16 Cal.3d 30 Statutory construction principles: reconcile conflicting provisions to give effect to legislative purpose. Supported court’s approach to harmonize subdivisions 1 and 3 of section 581 without nullifying either.
Estate of McDill (1975) 14 Cal.3d 831 Legislation should be construed to avoid rendering statutory language meaningless. Used to justify interpretation that preserves defendants’ right to dismissal with prejudice after failure to amend demurrer.
Solberg v. Superior Court (1977) 19 Cal.3d 182 Courts should not indulge in unnecessary statutory construction when language is clear. Referenced in dissent to argue that subdivisions 1 and 3 are clear and unambiguous and need no reconciliation.

Court's Reasoning and Analysis

The court analyzed the interplay between Code of Civil Procedure section 581, subdivisions 1 and 3, focusing on the timing and effect of voluntary and involuntary dismissals. Subdivision 1 grants a plaintiff an absolute right to dismiss without prejudice before the "actual commencement of trial," defined statutorily as the opening statement or first witness. Subdivision 3 permits dismissal with prejudice by court order after a demurrer is sustained with leave to amend and the plaintiff fails to amend within the allowed time.

The court reaffirmed the longstanding rule from Goldtree v. Spreckels that a demurrer sustained (with or without leave to amend) constitutes a "trial" for purposes of dismissal rights, thereby terminating the plaintiff's right to voluntary dismissal without prejudice once the opportunity to amend expires. The 1947 amendment to subdivision 1, which more precisely defines "actual commencement of trial," does not override this principle or extend the right to voluntary dismissal beyond the sustaining of a demurrer with leave to amend and failure to amend.

The court rejected the plaintiff's reliance on United Shippers and Parenti, concluding those cases either involved different procedural postures or contained dicta inconsistent with the legislative intent to prevent prolonging litigation by repeated voluntary dismissals after adverse rulings. The court emphasized the policy against subjecting defendants to duplicative litigation and the need for finality and orderly disposition.

In harmonizing the two subdivisions, the court held that the defendant's right to dismissal with prejudice under subdivision 3 prevails once the plaintiff fails to amend following a sustained demurrer with leave to amend. The voluntary dismissal filed by the plaintiff under subdivision 1 after this point was ineffective to divest the court of jurisdiction. Therefore, the trial court's order granting dismissal with prejudice must be reinstated.

Holding and Implications

The court held that once a general demurrer is sustained with leave to amend and the plaintiff fails to amend within the time allowed, the plaintiff no longer has the right to voluntarily dismiss the action without prejudice under Code of Civil Procedure section 581, subdivision 1. Instead, the defendant is entitled to dismissal with prejudice under subdivision 3 upon motion and court order.

The direct effect is that the trial court's order of dismissal with prejudice pursuant to subdivision 3 must be reinstated, and the plaintiff's attempted voluntary dismissal after failing to amend is ineffective to divest the court of jurisdiction. No new precedent beyond the clarification of the interplay between subdivisions 1 and 3 is established. The ruling promotes finality and discourages repetitive litigation by requiring plaintiffs who fail to amend to appeal adverse rulings rather than dismiss and refile.

Show all summary ...

OPINION

RICHARDSON, J.

We examine and resolve an apparent conflict between two subdivisions of Code of Civil Procedure section 581 (All further statutory references are to that code unless otherwise cited.) Subdivision 1 gives a plaintiff a right to dismiss his action without prejudice "at any time before the actual commencement of trial." Subdivision 3, on the other hand, affords a defendant a right to obtain dismissal of such action with prejudice after the trial court has sustained, with leave to amend, defendant's general demurrer, and plaintiff has failed to so amend. We will conclude that in such a conflict, a defendant's right to a dismissal with prejudice prevails.

On August 4, 1978, defendants' general demurrer to plaintiff's second amended complaint was sustained with leave to amend within 30 days. The time for such amendment subsequently was extended to September 26. Plaintiff sought no further extensions and did not amend his complaint.

On October 5, defendants filed and served upon plaintiff by mail a notice of a motion to be heard October 20 for a dismissal with prejudice of plaintiff's action, pursuant to Code of Civil Procedure section 581, subdivision 3.

On October 6, plaintiff filed a request for dismissal of his action without prejudice, pursuant to section 581, subdivision 1. The clerk of the court entered a dismissal without prejudice in accordance with the statute; and plaintiff gave to defendants written notice thereof.

On October 20, after hearing, the court granted defendants' previously noticed motion for dismissal with prejudice of plaintiff's action, observing that plaintiff's previous request for dismissal without prejudice was not in the court's file.

On November 9, however, the court reversed itself and granted plaintiff's motion to set aside its order of dismissal with prejudice on the ground that plaintiff's voluntary dismissal of October 6 had terminated the court's jurisdiction over the matter. It is from this ruling that defendants appeal.

We examine more closely the applicable statute. In relevant part, section 581 provides: "An action may be dismissed in the following cases:

"1. By plaintiff, by written request to the clerk, . . at any time before the actual commencement of trial, . . . A trial shall be deemed to be actually commenced at the beginning of the opening statement of the plaintiff or his counsel, and if there shall be no opening statement, then at the time of the administering of the oath or affirmation to the first witness, or the introduction of any evidence.

". . . . . . . . . . . . . . .

"3. By the court, . . . when, after a demurrer to the complaint has been sustained with leave to amend, the plaintiff fails to amend it within the time allowed by the court, and either party moves for such dismissal."

Apart from certain omitted and irrelevant statutory exceptions, a plaintiff's right to a voluntary dismissal pursuant to subdivision 1 appears to be absolute. (See 4 Witkin, Cal. Procedure (2d ed. 1971) Proceedings Without Trial, § 44, p. 2709.) Upon the proper exercise of that right, a trial court would thereafter lack jurisdiction to enter further orders in the dismissed action. The implication of a subdivision 1 dismissal is that it is generally "without prejudice" to a plaintiff's filing of a new action on the same allegations if it is done within the period of the appropriate statute of limitations. ( Id., at § 55, p. 2720.) Plaintiff denominated his request here as "without prejudice," and the dismissal as entered so indicated.

On the other hand, the power of a court to dismiss an action upon motion of either party under the circumstances set forth in subdivision 3 seems equally clear. (4 Witkin, supra, at § 120, p. 2786.) As with subdivision 1 dismissals, the statutory language is not specific but it is generally accepted that the movant is entitled to an appealable judgment of dismissal "with prejudice" ( ibid.), as defendants requested in this case.

(1a) What are the time limits within which a subdivision 1 voluntary dismissal may be effected? In construing a previous version of section 581, subdivision 1, which afforded a plaintiff a right to dismiss his action voluntarily "at any time before trial," we established many years ago that such right was ended when a trial court order sustained a defendant's general demurrer without leave to amend. ( Goldtree v. Spreckels (1902) 135 Cal. 666 [ 67 P. 1091].) We reasoned that the use of the term "trial" in the statute "cannot be restricted in its meaning to trials of the merits after answer, for there may be such a trial on a general demurrer to the complaint as will effectually dispose of the case where the plaintiff has properly alleged all the facts which constitute his cause of action. If the demurrer is sustained, he stands on his pleading and submits to judgment on the demurrer, and, if not satisfied, has his remedy by appeal. In such a case, we think, there would be a trial within the meaning of the code, . . ." ( Id., at pp. 672-673.)

With reference to cases, such as the one before us, in which leave to amend is afforded but not exercised, we further noted: "`When a general demurrer to a petition is sustained, and the plaintiff declines to amend, he practically confesses that he has alleged in his pleading every fact he is prepared to prove in support of his action. Therefore, in such a case, nothing remains to be done except to render judgment for the defendant. Since the defendant by his demurrer has admitted all the facts of the plaintiff's case, we see no reason why the judgment should not be regarded as a conclusive determination of the litigation on its merits.'" ( Goldtree v. Spreckels, supra, 135 Cal. at p. 672.) We held that the matter having been submitted to the court, a plaintiff no longer had the right to dismiss without prejudice. "`If he could do so, litigation would become interminable, because a party who was led to suppose a decision would be adverse to him could prevent such decision and begin anew, thus subjecting the defendant to annoying and continuous litigation.'" ( Id., at p. 671.) An important additional interest has also been identified. "But the injustice to the defendant is not the greatest evil of such a practice; the wasting of the time and money of the people in a fruitless proceeding in the courts is something far more serious." ( Casner v. Daily News Company, Ltd. (1940) 16 Cal.2d 410, 421 [ 106 P.2d 201] (dis. opn. of Edmonds, J.).)

Subsequent to our decision in Goldtree, subdivision 1 was amended to its current form, now affording plaintiff a right to dismiss "at any time before the actual commencement of trial," rather than "at any time before trial," as provided previously. The amendment also listed several events which would be "deemed" to constitute the "actual commencement of trial." Plaintiff argues that this amendment, together with its explicit definition of the "commencement of trial," changed the rule of Goldtree which had prevented voluntary dismissal by a plaintiff after the sustaining of a demurrer. It is contended that the modification of the statute created a new and exclusive test, preserving the right of voluntary dismissal until the occurrence of one of the specific acts deemed by subdivision 1 to constitute "the actual commencement of trial." In support of his contention (and of the trial court's ultimate ruling), plaintiff relies on United Shippers, Inc. v. Superior Court (1980) 104 Cal.App.3d 359 [ 162 Cal.Rptr. 871], and Parenti v. Lifeline Blood Bank (1975) 49 Cal.App.3d 331 [ 122 Cal.Rptr. 709]. While the holding in neither case directly establishes plaintiff's position, there is language in each case which supports him.

In United Shippers, defendant's demurrer had been argued and submitted, but was undecided by the court, when plaintiff successfully requested of the clerk of the court a voluntary dismissal of his action without prejudice. Subsequently, the trial court sustained the demurrer (without leave to amend) and dismissed the action. In reversing the trial court the Court of Appeal asserted that a plaintiff has an absolute right to dismiss his action pursuant to section 581, subdivision 1, even "after a demurrer to his complaint has been submitted to the court for decision. . . ." ( United Shippers, Inc. v. Superior Court, supra, 104 Cal.App.3d at p. 361.) Accordingly, it held that the trial court lacked jurisdiction to proceed once plaintiff had filed his dismissal. ( Id., at p. 363.)

United Shippers is distinguishable, of course, in that the trial court there had not yet ruled on the merits of the demurrer when plaintiff voluntarily dismissed its action. In such a case, the rationale of Goldtree favoring early termination of litigation arguably is of less force in preventing voluntary dismissal.

In Parenti v. Lifeline Blood Bank, supra, 49 Cal.App.3d 331, defendant's general demurrer was sustained. At plaintiff's request, the order was made without leave to amend, presumably to expedite appeal. Several months later, plaintiff did file a notice of appeal from the order sustaining defendant's demurrer. On the same day, however, she filed a request for voluntary dismissal pursuant to section 581, subdivision 1. Holding that no appealable judgment had been entered on the order sustaining the demurrer, and that plaintiff obviously could not appeal her own voluntary dismissal, the appellate court dismissed the appeal. ( Id., at p. 333.)

In dictum, however, the Parenti court construed broadly the same language of subdivision 1 relied upon in United Shippers, concluding that plaintiff's voluntary dismissal, properly requested before "the actual commencement of trial," deprived the trial court of jurisdiction to act further in the matter. Accordingly, it noted that even if plaintiff were then to seek to have the trial court enter an appealable judgment of dismissal on its order sustaining defendant's demurrer, it would fail because that court had "nothing before it on which to act." ( Id., at p. 335.)

The conclusion of United Shippers and Parenti that the amendment to section 581, subdivision 1, undermined the rationale of Goldtree is incorrect. Cases decided after the 1947 amendment, including our own, have relied upon Goldtree's definition of a "trial" as including an order sustaining a demurrer. (See, e.g., Berri v. Superior Court (1955) 43 Cal.2d 856 [ 279 P.2d 8]; London v. Morrison (1950) 99 Cal.App.2d 876, 879 [ 222 P.2d 941]; 4 Witkin, supra, at § 51, p. 2716.) In Berri, for example, decided eight years after the amendment, we again held that the sustaining of a demurrer without leave to amend was a "trial" preventing the dismissal of the action pursuant to section 583 for plaintiff's failure to bring the action "to trial" within five years after it was filed. Continuing to rely on Goldtree we observed "generally in defining a trial . . . it is the determination of an issue of law or fact; a demurrer of course calls for the determination of an issue of law only. [Citations.]" ( Berri, supra, 43 Cal.2d at p. 859.) Accordingly, we are unable to agree with plaintiff's contention that the 1947 amendment erased or diluted the Goldtree rationale. It is reasonable to conclude that the 1947 amendment to section 581, subdivision 1, did not address the issue before us, namely, when does the trial of an issue of law commence? Nor may the section be read, at this late date, to overrule the Goldtree reasoning by implication.

Moreover, plaintiff's interpretation of the amendment to subdivision 1, in our view, would appear to subvert its intended effect. The amendment was urged by the Committee on Administration of Justice of the State Bar to eliminate the practice of a plaintiff's voluntary dismissal of his action after the case had been called for trial or, even more seriously, after the parties and the court had been engaged substantially in trial on the merits. (See Rep. of Com. on Admin. of Justice, 1945-1946 (1946) 21 State Bar J. 166, 197.) Viewed as a response to such concerns, the amendment clearly would limit that right of voluntary dismissal to the point of the "commencement" of trial. Construing the amendment as extending the opportunities for voluntary dismissal beyond those recognized by Goldtree, on the other hand, as plaintiff would have us do, clearly runs counter to the direction of the legislative purpose.

Other considerations also lead us to the conclusion that defendants' position is the stronger here. (2) It is fundamental that legislation should be construed so as to harmonize its various elements without doing violence to its language or spirit. Wherever possible, potentially conflicting provisions should be reconciled in order to carry out the overriding legislative purpose as gleaned from a reading of the entire act. (See People ex rel. Younger v. Superior Court (1976) 16 Cal.3d 30, 40 [ 127 Cal.Rptr. 122, 544 P.2d 1322].) A construction which makes sense of an apparent inconsistency is to be preferred to one which renders statutory language useless or meaningless. (See Estate of McDill (1975) 14 Cal.3d 831, 837 [ 122 Cal.Rptr. 754, 537 P.2d 874].) Permitting a plaintiff to exercise an absolute right to dismiss his action without prejudice to recommencing suit based upon the same allegations, even after the trial court has ruled definitively and adversely on the sufficiency of those allegations, makes neither good sense nor good law.

The present case is illustrative. Plaintiff apparently was unable to amend the allegations of his complaint to satisfy the court that a cause of action was stated. He was given several opportunities to do so. To accept his present argument, and assuming the statute of limitations permitted, would allow him to reassert the same allegations in still another complaint, seeking a more favorable ruling from another court, rather than to proceed in a more appropriate, expeditious and final, course to appeal on the legal sufficiency of those allegations.

The obvious consequence of such a statutory construction would be to prolong, rather than to terminate, lawsuits. It would not serve the orderly and timely disposition of civil litigation. No good reason appears why encouragement should be given to such tactics, the effect of which is to expose defendants to duplicative "annoying and continuous litigation," to burden our trial court with "fruitless" proceedings, and to delay the ultimate resolution of the validity of the plaintiff's pleading. (See Goldtree, supra, 135 Cal. at p. 671; Casner, supra, 16 Cal. 2d at p. 421 (dis. opn.).) Any language to the contrary in United Shippers and Parenti, both supra, is disapproved.

Our interpretation of section 581 does not deny a plaintiff his day in court. It simply requires that he frame his allegations in order to state a cause of action; and if a plaintiff is unable to do so after an adequate and reasonable opportunity is afforded, he must proceed to a review of such legal determination by appeal, rather than seek another trial forum in which to reassert the same claims.

We emphasize that the res judicata effect of a judgment of dismissal pursuant to subdivision 3 after the sustaining of a demurrer is of limited scope. Referring to subdivision 3, we have previously cautioned that, "It is a judgment on the merits to the extent that it adjudicates that the facts alleged do not constitute a cause of action. . . . If, on the other hand, new or additional facts are alleged that cure the defects in the original pleading, it is settled that the former judgment is not a bar to the subsequent action whether or not plaintiff had an opportunity to amend his complaint." ( Keidatz v. Albany (1952) 39 Cal.2d 826, 828 [ 249 P.2d 264], and cases there cited.)

(1b) We conclude, therefore, that once a general demurrer is sustained with leave to amend and plaintiff does not so amend within the time authorized by the court or otherwise extended by stipulation or appropriate order, he can no longer voluntarily dismiss his action pursuant to section 581, subdivision 1, even if the trial court has yet to enter a judgment of dismissal on the sustained demurrer. (Anticipating another possible source of procedural confusion (see Woods, To Dismiss or Not to Dismiss: That is the Question (Cont.Ed.Bar Oct. 1980) 2 Civ. Litigation Rptr. p. 109), we note that such right of voluntary dismissal, which is not barred until expiration of plaintiff's time to amend after the sustaining of the demurrer, would also not be impaired prior to a decision sustaining the demurrer.)

The matter is remanded to the trial court with directions to vacate the order appealed from and to reinstate its previous judgment of dismissal with prejudice pursuant to subdivision 3 of section 581

Tobriner, J., Mosk, J., Newman, J., and Rattigan, J., concurred.

Assigned by the Chairperson of the Judicial Council.

CARR, J.[fn*] [fn*] Assigned by the Chairperson of the Judicial Council.

I respectfully dissent.

The majority opinion is premised on a perceived inconsistency between Code of Civil Procedure section 581, subdivisions 1 and 3, which requires the court to construe the section and resolve the conflict. I find no inconsistency. Subdivision 1 of section 581 in plain language permits dismissal by the plaintiff at any time before the actual commencement of trial as defined by the statute. Subdivision 3 permits dismissal by the court, as pertinent herein, when a demurrer is sustained with leave to amend and the plaintiff fails to amend within the time allowed by the court and either party moves by noticed motion for dismissal.

All further statutory references, unless otherwise noted, are to the Code of Civil Procedure.

When leave to amend is granted, the action remains viable until one of two events occurs: 1) the defendant moves for dismissal for failure of plaintiff to timely amend and the court dismisses the action, or 2) the trial commences. The mere filing of the notice to dismiss does not effect a dismissal. The trial court is required to exercise its discretion in determining if the action should be dismissed for plaintiff's neglect in amending. The failure to amend does not ipso facto mean the plaintiff has opted to stand on the complaint. There may be an acceptable reason for not amending within the time limits or the plaintiff may intend to move for relief under section 473. I am mindful the plaintiff in the instant case did not seek section 473 relief but relied on what was believed to be a valid dismissal divesting the court of further jurisdiction. But this analysis is particularly appropriate in this case wherein, at least in my view, the defendant was quick at the starting gate in filing the motion to dismiss nine days after the time to amend had elapsed without a courtesy reminder to opposing counsel.

Section 581 provides: "An action may be dismissed in the following cases: . . ." (Italics added.)

I do not mean to condone procrastination and slothfulness on the part of attorneys, but as a former practicing attorney, I am aware of the problems of inept personnel who fail to calendar or miscalendar deadlines and the burden of determining priorities in the workload of a busy attorney.

The language of subdivisions 1 and 3 is clear and unambiguous. There is no need to construe the language and harmonize the provisions, and the courts "should not indulge in it." ( Solberg v. Superior Court (1977) 19 Cal.3d 182, 198 [ 137 Cal.Rptr. 460, 561 P.2d 1148].)

The majority poses the critical question of what are the time limits within which a voluntary dismissal may be effected. Neither that question nor its corollary of when does a trial on an issue of law commence is correctly answered. Reliance is placed on Goldtree v. Spreckels (1902) 135 Cal. 666 [ 67 P. 1091], decided when the statute at issue permitted a plaintiff to dismiss an action "at any time before trial." But the ruling of Goldtree is simply that the dismissal statute encompasses a trial of law as well as a trial of fact and a hearing on a demurrer in which the demurrer is sustained without leave to amend is a final determination of the matter, foreclosing plaintiff's right to dismiss. The majority quotes from Goldtree but omits that crucial language which clearly indicates it is the entry of a judgment which precludes voluntary dismissal. Thus, the complete statement from Goldtree is: ". . . there may be such a trial on a general demurrer to the complaint as will effectually dispose of the case where the plaintiff has properly alleged all the facts which constitute his cause of action. If the demurrer is sustained, he stands on his pleading and submits to judgment on the demurrer, and, if not satisfied, has his remedy by appeal. In such a case, we think, there would be a trial within the meaning of the code, and the judgment would cut off the right of dismissal, unless it was first set aside or leave given to amend." ( Goldtree v. Spreckels, supra, 135 Cal. at pp. 672-673; italics added.)

The Goldtree holding was concerned only with a demurrer sustained without leave to amend.

Under the somewhat peculiar facts of that case, a demurrer was sustained to two of three causes of action in the complaint. When trial commenced on the third cause of action, plaintiff moved to dismiss the two causes to which the demurrer had been sustained. The motion was denied and judgment entered for defendant. The plaintiff appealed from that judgment and secured a reversal of the adverse ruling on the demurrer.

However, the majority extrapolates this holding to apply to those cases in which leave to amend is granted, relying on dictum that "`When a general demurrer to a petition is sustained, and the plaintiff declines to amend, he practically confesses that he has alleged in his pleading every fact he is prepared to prove in support of his action. Therefore, in such a case, nothing remains to be done except to render judgment for the defendant. . . ." ( Id., at p. 672.) Even this dictum contemplates a definitive act by the plaintiff — a declining to amend, and the entry of a judgment. Neither of these factors are present here and I conclude the precedential value of Goldtree, if any remains, is limited to hearings on demurrers sustained without leave to amend.

In 1947, subdivision 1 was amended to its present form to allow a plaintiff to dismiss "at any time before the actual commencement of trial," which is defined as "the beginning of the opening statement of the plaintiff, or his counsel, and if there shall be no opening statement of the plaintiff or his counsel, then at the time of administering of the oath or affirmation to the first witness, or the introduction of any evidence. . . ." The majority, having resolved the alleged conflict between subdivisions 1 and 3, then determines that subdivision 3 as amended "did not address the issue before us, namely, when does the trial of an issue of law commence?" ( Ante, p. 788.) The rationale for this somewhat puzzling conclusion is that the amendment was aimed at eliminating the practice of plaintiffs dismissing actions at commencement or during trial and refiling anew; that it would subvert this legislative purpose to construe the amendment "as extending the opportunities for voluntary dismissal beyond those recognized by Goldtree." ( Ante, p. 788.) The flaw in such reasoning is that the legislative purpose is not being served. If that purpose be to prevent voluntary dismissals during trial, the purpose is accomplished by prohibiting voluntary dismissals after commencement of trial and by statutorily defining when a trial commences.

I perceive no extension of or conflict with Goldtree. Simply stated, a plaintiff may not dismiss without prejudice after a demurrer is sustained without leave to amend ( Goldtree) or after commencement of trial (§ 581, subd. 1).

The issue is essentially one of jurisdiction. A voluntary dismissal divests the court of jurisdiction as does an involuntary dismissal ordered by the court. Implicit recognition of this is found in the language of subdivision 3 which distinguishes between actions in which a demurrer is sustained without leave and those in which leave is granted but the plaintiff fails to timely amend. In the former situation, the court is empowered to enter the dismissal without more; in the latter the court may order dismissal only on motion of a party. It is the order of dismissal which divests the court of jurisdiction, not the running of the time for amendment or noticing the motion to dismiss.

Consistent with this opinion, I would disapprove the dictum of Parenti v. Lifeline Blood Bank (1975) 49 Cal.App.3d 331 [ 122 Cal.Rptr. 709], that the right to voluntary dismissal may be exercised after an order sustaining a demurrer without leave to amend. United Shippers, Inc. v. Superior Court (1980) 104 Cal.App.3d 359 [ 162 Cal.Rptr. 871] does not address the issue before us as no decision on the demurrer had been made at the time of the voluntary dismissal. In dictum, the majority approved the holding that a voluntary dismissal may be entered after a demurrer is submitted but before a decision has been rendered. This approval appears to further obfuscate the issue of when a trial of law commences. According to the majority, in demurrer hearings, it is when the demurrer is sustained without leave or if leave is granted upon expiration of the time to amend, no amendment having been made. By its dictum, the majority now has the trial of law commencing upon the ruling of the court sustaining the demurrer. If sustained with leave, we have the situation that plaintiff is precluded from dismissing even during the time to amend and the distinction between without and with leave becomes meaningless.

". . . we note that such right of voluntary dismissal, . . . would not be impaired prior to a decision sustaining the demurrer. . . ." ( Ante, pp. 788, 789.)

I would affirm the order vacating the dismissal with prejudice.

Bird, C.J., concurred.

Respondent's petition for a rehearing was denied September 16, 1981. Bird, C.J., was of the opinion that the petition should be granted.