<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000099" bgcolor="#FFFFFF">
I'm aware that this must be a stupid question, but after googling
for a while can't find the right answer:<br>
<br>
How can I invoke a method with a boolean as an argument. I try to do
the following:<br>
<br>
---8<---<br>
(let* ((jlclass (jclass "java.lang.Class"))<br>
(for-name (jmethod jlclass "forName"<br>
(jclass "java.lang.String") <br>
(jclass "boolean")<br>
(jclass "java.lang.ClassLoader"))))<br>
(jstatic for-name jlclass "org.postgresql.Driver" t
(get-current-classloader)))<br>
---8<---<br>
But it raises the error:<br>
<br>
The value T is not of class boolean<br>
[Condition of type ERROR]<br>
<br>
I tried replacing '(jclass "boolean") for '(jclass
"java.lang.Boolean"), but in that case it doesn't find the for-name
method.<br>
<br>
How am I supposed to invoke the method!<br>
<br>
Thanks in advance!<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
+-----------------
| Francisco Vides Fernández <a class="moz-txt-link-rfc2396E" href="mailto:fvides@dedaloingenieros.com"><fvides@dedaloingenieros.com></a>
| Gerente
| Teléfono fijo: 952 60 29 59
| Fax: 952 60 29 59
| igaleno <a class="moz-txt-link-freetext" href="http://www.igaleno.com/">http://www.igaleno.com/</a>
+------
</pre>
</body>
</html>