Thanks David.
On Fri, Aug 20, 2010 at 12:13 PM, David Kirkman <dkirkman@ucsd.edu> wrote:I missed the bottom of your message!
> On Fri, Aug 20, 2010 at 11:48 AM, David Dreisigmeyer
> <david.dreisigmeyer@gmail.com> wrote:
>> Hi,
This works for you because 4.0 is the class argument to jcall, and it
>> Also, this works:
>> CL-USER> (jcall (jmethod "java.lang.Float" "intValue") 4.0)
>> 4
ends up being passed as a java.lang.Float.
You'll get an error if you try it with 4.0d0, or if you have your
*read-default-float-format* set to double.
(jcall (jmethod "java.lang.Float" "compare" "float" "float") nil 4.0s0 5.0s0)
>> but when I try this:
>> (jcall (jmethod "java.lang.Float" "compare") 4.0 5.0)
>> I get:
>> No such method: java.lang.Float.compare()
or
(jcall (jmethod "java.lang.Float" "compareTo" "java.lang.Float")
4.0s0 5.0s0)