[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJava - creating arrays
- From: Aaron Kamienski <aaronk@...>
- Date: Wed, 28 Jun 2000 09:35:19 -0500
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!
ajk