[armedbear-devel] One (probably) stupid question
Francisco Vides Fernández
fvides at dedaloingenieros.com
Fri May 18 11:14:07 UTC 2012
I'm aware that this must be a stupid question, but after googling for a
while can't find the right answer:
How can I invoke a method with a boolean as an argument. I try to do the
following:
---8<---
(let* ((jlclass (jclass "java.lang.Class"))
(for-name (jmethod jlclass "forName"
(jclass "java.lang.String")
(jclass "boolean")
(jclass "java.lang.ClassLoader"))))
(jstatic for-name jlclass "org.postgresql.Driver" t
(get-current-classloader)))
---8<---
But it raises the error:
The value T is not of class boolean
[Condition of type ERROR]
I tried replacing '(jclass "boolean") for '(jclass "java.lang.Boolean"),
but in that case it doesn't find the for-name method.
How am I supposed to invoke the method!
Thanks in advance!
--
+-----------------
| Francisco Vides Fernández <fvides at dedaloingenieros.com>
| Gerente
| Teléfono fijo: 952 60 29 59
| Fax: 952 60 29 59
| igaleno http://www.igaleno.com/
+------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/armedbear-devel/attachments/20120518/5018d46e/attachment.html>
More information about the armedbear-devel
mailing list