simplify LuaCompiler interface and add Lua2Java utility class.

This commit is contained in:
James Roseborough
2010-07-25 22:31:43 +00:00
parent 97b4162423
commit 69bbae70a1
14 changed files with 238 additions and 110 deletions

View File

@@ -181,7 +181,7 @@ public class LuaOperationsTest extends TestCase {
try {
LuaTable _G = org.luaj.vm2.lib.JsePlatform.standardGlobals();
InputStream is = new ByteArrayInputStream(script.getBytes("UTF-8"));
return LuaC.compile(is, name);
return LuaC.instance.compile(is, name);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();