On any platform, calling conventions are fictions enforced at the machine code
level by compilers :)
It's not specific to the JVM.
Luc P.
On Tue, 13 Sep 2011 19:33:54 -0700 (PDT)
Alan Malloy wrote:
> Varargs are a fiction of javac, and do not exist at the bytecode
> level. In real life, this m
Thank you very much. Your suggestions worked:
(.doSomething a "abc" (into-array String ["efg" "hij"]))
On Sep 13, 7:33 pm, Alan Malloy 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-
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 wrote:
> I have a following API call that I need to
My typos errors are horrible tonight, new laptop, new keyboard.
So if you defined a variable argument Java method the String array should work.
But I am not certain about the intent of ... in your code excerpt.
On Tue, 13 Sep 2011 21:43:03 -0400
Luc Prefontaine wrote:
> Oups I did read the code
Oups I did read the code entirely... you defined a varg method ?
On Tue, 13 Sep 2011 21:34:33 -0400
Luc Prefontaine wrote:
> user=> (class (into-array String ["s" "a"]))
> [Ljava.lang.String;
>
> Luc P.
>
>
> On Tue, 13 Sep 2011 18:21:31 -0700 (PDT)
> ron peterson wrote:
>
> > I have a fol
user=> (class (into-array String ["s" "a"]))
[Ljava.lang.String;
Luc P.
On Tue, 13 Sep 2011 18:21:31 -0700 (PDT)
ron peterson 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
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