luajava.bindClass raise classNotFindException #65
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
what i think
luaj use
java.lang.ClassLoader#getSystemClassLoaderto load app class inorg.luaj.vm2.lib.jse.LuajavaLib#classForNamelua script
I also encountered this problem
I believe luaj itself would do nothing with this issue (as it android platform specific issue), your code however can:
d884050a6a/RemixedDungeon/src/main/java/com/nyrds/android/lua/MultiDexLuajavaLib.java (L13)d556e6c0d5/RemixedDungeon/src/main/java/com/nyrds/android/lua/LuaEngine.java (L114)Better late then never: This was valid at some point. But as of 2.0.1 (before you think of downgrading, that version is ten years old and isn't even close to the one this repo) you can only bind Java classes.
I suggest this change be reverted. I cannot think of a good reason for this.
Fixed