Thank you very much. Your suggestions worked:

(.doSomething a "abc" (into-array String ["efg" "hij"]))

On Sep 13, 7:33 pm, Alan Malloy <a...@malloys.org> wrote:
> Varargs are a fiction of javac, and do not exist at the bytecode
> level. In real life, this method takes two args, a String and a
> String[]. Use into-array to create a string array, and pass that as
> the second arg.
>
> On Sep 13, 6:21 pm, ron peterson <peterson.ron...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I have a following API call that I need to make from Clojure:
>
> > class A
>
> > doSomething(java.lang.String arg1, String... args)
>
> > so I tried
>
> > (def a (new A))   ;this works
>
> > (.doSomething a "abc" "efg" "hij")
>
> > ;this doesn't work giving me no matching method found: doSomething for
> > class A

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to