Re: Interop with strange java type: java.lang.String<>

2015-08-20 Thread Justin Smith
I suspect this is it. Also, remember that internally a varargs string method will take an Array of String as its last arg. On Thursday, August 20, 2015 at 9:35:19 AM UTC-7, squeegee wrote: > > > On Aug 20, 2015, at 3:32 AM, Andy Dwelly > > wrote: > > Does anyone know how how to create a java.lan

Re: Interop with strange java type: java.lang.String<>

2015-08-20 Thread Stephen C. Gilardi
> On Aug 20, 2015, at 3:32 AM, Andy Dwelly wrote: > > Does anyone know how how to create a java.lang.String<> ? Ideally how to > convert a Clojure "some string" which is a java.lang.String to a > java.lang.String<>. > Also, although this is merely idle curiosity on my part, does anyone know >

Interop with strange java type: java.lang.String<>

2015-08-20 Thread Andy Dwelly
I'm having to do some interop with a proprietary - and erroneously documented - Java SDK. There's a class C with a method described as 'translate(java.lang.String). Trying to call the method with a Clojure on an object of class C I got a 'no matching method found' error. So I used the following