lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Aaron Kamienski wrote:
> I'm trying to create a Java array from Lua (or, probably more
> precisely, a Lua proxy for a Java array).  However, I am having
> problems and wonder if anyone might have suggestions.

It looks like I simply needed a night to think about the problem.
I shouldn't have been trying to bind the class, but instead get
a Class object using the getClass() method.  E.g.,

Array = javaBindClass("java.lang.reflect.Array")
Object = javaNewInstance("java.lang.Object"):getClass()
x = Array:newInstance(Object, 10)

Thanks again for the great language!  Apologies for the long-winded,
boring previous post!