jasonsantos / luajava

LuaJava is a scripting tool for Java. The goal of this tool is to allow scripts written in Lua to manipulate components developed in Java. LuaJava allows Java components to be accessed from Lua using the same syntax that is used for accessing Lua`s native objects, without any need for declarations or any kind of preprocessing. LuaJava also allows Java to implement an interface using Lua. This way any interface can be implemented in Lua and passed as parameter to any method, and when called, the equivalent function will be called in Lua, and it's result passed back to Java.
http://www.keplerproject.org/luajava/
MIT License
376 stars 126 forks source link

LuaStateFactory: fix removeLuaState #3

Closed talklittle closed 10 years ago

talklittle commented 11 years ago

Using List.set instead of List.add.

This way, overwrites the state instead of inserting a null state and causing issues with state indices being off by one after calling LuaState.close().