lua-users home
lua-l archive

Re: LuaJava: Java method not found

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


Hi Andreas,
On Thu, Nov 28, 2002 at 07:32:48PM +0100, Andreas Rozek wrote:
> local JavaClass = javaBindClass("Test");
> JavaClass.setLuaObject({Creator="Lua"});
this is a type mismatch. The Java method expects an object of type
Test, but you try to pass it a Lua table.
> I get the (Lua) error message
> 
> error: Test.setLuaObject not found.
> stack traceback:
> 1: method 'setLuaObject' [C]
> 2: main of file 'test.lua' at line 2
The LuaJava error messages do not distinguish between nonexistent methods
and type mismatches.
- Christian

AltStyle によって変換されたページ (->オリジナル) /