Menu

#40 luajava.bindClass do not bind innerclass

v3.0-beta1
closed-fixed
nobody
None
5
2015-04-30
2014-10-13
quatz
No

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

Discussion

  • James Roseborough

    This will be fixed in version 3.0.1

     
  • James Roseborough

    • status: open --> pending-fixed
     
  • James Roseborough

    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.