Fix gettable result handling in LInstances

This commit is contained in:
James Roseborough
2007-08-03 15:32:40 +00:00
parent b8376fe0ef
commit 64d02d3559

View File

@@ -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);
}
} }