OPINION
On original submission, we held that an indictment pending against appellant placed him in double jeopardy and ordered the indictment dismissed. Althоugh the State did not file a motion for rehearing, it filed a petition for discretionary review on July 18, 1991. We reconsider our decision pursuаnt to Tex.R.App.P. 101 and now conclude we do not have jurisdiction tо hear appellant’s complaint in light of the decision of the Court of Criminal Appeals in Ex parte Apolinar, No. 682-90 (Tex.Crim.App. June 19,1991) (not yet reported). We withdraw our previous opinion and dismiss the appeal for want of jurisdiction.
On November 1, 1990, appellant filed a pleading, entitlеd “Defendant’s Application for Writ of Habeas Corpus and Special Plea in Bar,” under the cause number of the pending indictment. The record does not show that a writ of habeas corpus was issued. On November 12, the trial court heard evidence and argument and thеn stated that he “would overrule the special plea and would deny the double jeopardy claim.” The case before us is an attempted appeal of that ruling of the trial court.
Whether the action of the trial court is the denial of a plea in bаr or was the denial of relief under an application for writ оf habeas corpus determines whether we have jurisdiction to review the court’s decision.
A special plea may be used to assert a double jeopardy claim under Tex. Code Crim.Proc.Ann. Art. 27.05 (Vеrnon 1989). If such a plea is asserted under that article, all issues of fact are determined during the trial on the merits, so as to precludе the determination of double jeopardy in advance of triаl.
Apolinar,
Slip Op. at 2;
Keller v. State,
Use of the pretrial writ of habeas corpus is the only way to protect a defendant’s fifth amendment right against twice being put to trial. Apolinar, Slip Op. at 3. Moreover, a special plea cannot be construed to be a pretrial writ of habeas corpus. Apolinar, Slip Op. at 1-3.
There is nothing in the record showing that the trial court issued a writ of habeas corpus.
See
Tex.Codе Crim. Proc.Ann. art. 11.10 et seq. (Vernon 1977). A trial court’s ruling on an application for writ of habeas corpus is appealable only when the trial court issues the writ and then rules upon the merits of the issue presеnted.
See, e.g., Ex parte Moorehouse,
Finding no writ of hаbeas corpus in the record, we conclude that the trial court did not act on the application for the writ. Thereforе, the ruling went to appellant’s plea in bar, which was the only other matter before the trial court in the hearing. *572 The denial of the pretrial plea in bar is interlocutory and is not appealable absent a final judgment. Apolinar, Slip Op. at 1-3.
The appeal is dismissed for want of jurisdiction.
