43 Although an application for bail usually arises in the context of criminal proceedings, the application itself does not appear to invoke the traditional criminal jurisdiction conferred by s 17 of the SCA and reflected in the provisions of the CLCA. In particular, in deciding an application for bail, prior to the enactment of the Act, the Supreme Court was not exercising its jurisdiction to try an information. It was exercising a distinct inherent common law jurisdiction. Since the enactment of the Act, the Supreme Court is exercising a statutory jurisdiction conferred by the Act. As well, as the court noted in Tobin, the procedure of applying for bail in the Supreme Court, by issuing a summons supported by affidavit, was the successor to the earlier procedure of habeas corpus. The issue of the writ of habeas corpus has not been regarded as involving an exercise of criminal jurisdiction unless it acquired that character from the kind of proceedings that led to it being used. Nor is the grant of bail always linked to the exercise of a court's general criminal jurisdiction. Bail can be granted to a person who is a witness in civil proceedings, and is arrested to ensure his or her attendance: see s 35 of the SCA and s 4 (1)(e) and (f) of the Act. On the other hand I note that in Lim v Gregson Malcolm CJ treated the jurisdiction to grant or refuse bail under the Criminal Code as a proceeding which was a "criminal proceeding" because it involved the exercise of "miscellaneous criminal jurisdiction" under the relevant rules: at 5-6. Similarly, in Fernandez Winneke P, with whom the other members of the court agreed, treated a decision under s 18A of the Bail Act 1977 (Vic), allowing an appeal by the Director of Public Prosecutions against a grant of bail, as "a matter of criminal practice and procedure" and, apparently, as a "criminal matter' for the purposes of s 17 of the Supreme Court Act 1986 (Vic).