make the debugging support code compile under JDK 1.3

This commit is contained in:
Shu Lei
2007-10-10 00:26:23 +00:00
parent edea16fb91
commit 8eab291c9b
21 changed files with 454 additions and 80 deletions

View File

@@ -24,10 +24,9 @@ package lua.debug;
import java.net.URL;
import junit.framework.TestCase;
import lua.LuaJVM;
/**
* Sanity test for LuaJVM.
* Sanity test for StandardLuaJVM.
*/
public class LuaJVMTest extends TestCase {
protected void doTestRun(String testName) {
@@ -37,7 +36,7 @@ public class LuaJVMTest extends TestCase {
if (filePath != null) {
args[1] = filePath.getPath();
try {
LuaJVM.main(args);
StandardLuaJVM.main(args);
} catch (Exception e) {
e.printStackTrace();
fail("Test " + testName + " failed due to " + e.getMessage());
@@ -70,7 +69,8 @@ public class LuaJVMTest extends TestCase {
//"strlib"
};
for (String test : tests) {
for (int i = 0; i < tests.length; i++) {
String test = tests[i];
System.out.println("==> running test: " + test + ".lua");
doTestRun(test + ".lua");
System.out.println("==> running test: " + test + ".luac");