diff --git a/src/jse/org/luaj/vm2/lib/jse/JavaMethod.java b/src/jse/org/luaj/vm2/lib/jse/JavaMethod.java index 7a331842..79a37ebf 100644 --- a/src/jse/org/luaj/vm2/lib/jse/JavaMethod.java +++ b/src/jse/org/luaj/vm2/lib/jse/JavaMethod.java @@ -113,9 +113,20 @@ class JavaMethod extends JavaMember { static class Overload extends LuaFunction { final JavaMethod[] methods; + + // no parammeter method index in overload method + int noArgMethodIndex = -1; Overload(JavaMethod[] methods) { this.methods = methods; + JavaMethod m; + for (int i=0; i