Let sample applet use a plain class loader within the luajava library.

This commit is contained in:
James Roseborough
2014-01-16 07:13:15 +00:00
parent 1bc4acdb89
commit 8201095b0d
2 changed files with 36 additions and 4 deletions

View File

@@ -109,7 +109,7 @@ public class LuajavaLib extends VarArgFunction {
// LuaValue modname = args.arg1();
LuaValue env = args.arg(2);
LuaTable t = new LuaTable();
bind( t, LuajavaLib.class, NAMES, BINDCLASS );
bind( t, this.getClass(), NAMES, BINDCLASS );
env.set("luajava", t);
env.get("package").get("loaded").set("luajava", t);
return t;