Hi Jochen,
How about:
lookup.findStatic(Array.class, "getLength", methodType(int.class, Object.class))
(java.lang.reflect.Array)
That's what we use in Golo to provide "length/size" methods to arrays, e.g.:
let a = [1, 2, 3]
println(a: length())
- Julien
> --
> You received this message because you are subscribed to the Google Groups "JVM Languages" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
jvm-language...@googlegroups.com.
> To post to this group, send email to
jvm-la...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/jvm-languages.
> For more options, visit
https://groups.google.com/d/optout.