On Thu, Oct 9, 2008 at 12:06 PM, Luc Prefontaine
<[EMAIL PROTECTED]> wrote:
>
> I may look stupid but how do you cast Java arguments ?

user=> (doc cast)
-------------------------
clojure/cast
([c x])
  Throws a ClassCastException if x is not a c, else returns x.
nil

So, (cast java.sql.Driver your-object). That said, the docs for
DriverManager indicate that it is the Driver's job to register itself,
so just loading the class like you are should be enough:

(clojure.lang.RT/classForName "com.mysql.jdbc.Driver")

Unless that driver is poorly written.

- J.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to