luajava.bindClass do not bind innerclass
Brought to you by:
ian_farmer,
jim_roseborough
luajava.bindClass do not bind innerclass and do not bind enum.
import org.luaj.vm2.*; import org.luaj.vm2.lib.jse.*; public class Launcher { public enum Enum { Test } public static void main(String[] args) { Globals globals = JsePlatform.standardGlobals(); LuaValue chunk = globals.load( "Launcher = luajava.bindClass('Launcher') print(Launcher.Enum)"); chunk.call(); } }
stdout:
nil
I feel this behavior is unnatural.
I expect
class Launcher$Enum
This will be fixed in version 3.0.1