[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJava: Java method not found
- From: Christian Vogler <cvogler@...>
- Date: Thu, 28 Nov 2002 13:47:44 -0500
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