Fix gettable result handling in LInstances
This commit is contained in:
@@ -126,7 +126,7 @@ public final class LuaJava extends LFunction {
|
|||||||
Field f = clazz.getField(s);
|
Field f = clazz.getField(s);
|
||||||
Object o = f.get(m_instance);
|
Object o = f.get(m_instance);
|
||||||
LValue v = CoerceJavaToLua.coerce( o );
|
LValue v = CoerceJavaToLua.coerce( o );
|
||||||
vm.setResult( v );
|
vm.push( v );
|
||||||
} catch (NoSuchFieldException nsfe) {
|
} catch (NoSuchFieldException nsfe) {
|
||||||
vm.setResult( new LMethod(m_instance,clazz,s) );
|
vm.setResult( new LMethod(m_instance,clazz,s) );
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@@ -145,6 +145,11 @@ public final class LuaJava extends LFunction {
|
|||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public boolean luaStackCall(VM vm) {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
return super.luaStackCall(vm);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user