[armedbear-devel] java interop question

Alessio Stalla alessiostalla at gmail.com
Tue Oct 12 21:19:02 UTC 2010


On Tue, Oct 12, 2010 at 10:18 PM, David Kirkman <dkirkman at ucsd.edu> wrote:
> I don't have httpcomponents, so this is not tested ...
>
> But your problem is probably that (jmethod client-class "execute") is
> looking for a zero argument execute method, and the class does not
> have one.  Based on the api docs (and your attempted method call), I
> think you want
>
> (jmethod client-class "execute" "org.apache.http.client.methods.HttpUriRequest")

Or if you don't mind paying a certain runtime penalty on each
invocation, you can use the shorter (jcall "execute" client-obj
get-obj) and let ABCL figure out the exact method to call.
Also you can use url directly if it's a Lisp string because ABCL will
convert it to a Java string automatically when you pass it to a Java
method.

hth,
Alessio




More information about the armedbear-devel mailing list