weimingtom / jnlua

Automatically exported from code.google.com/p/jnlua
0 stars 0 forks source link

error #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If I declare in the java code as static method 
public static int getMessageIdByName(String name) {
        return messageIdMap.get(name);
}
and try to call it in lua
Core:getManager():getMessageIdByName("DRAW")
I get an error:
null:17: com.naef.jnlua.LuaRuntimeException: no method of class 
org.gram.engine.manager.Manager matches 'getMessageIdByName(string)'

but if it works to remove static

What version of the product are you using? On what operating system?
version - JNLua 1.04
OS - Windows 7

Original issue reported on code.google.com by ruslan.n...@gmail.com on 26 Mar 2014 at 8:29