Lua Java for Lua 4.0
This is a very bleeding edge port of Lua Java 2.1.0 to the lua 4.0 API. Lua Java 2.1.0 was written by Carlos Cassino.
Download the port here.
This port uses the lua3 compatibility layer. As a result, it does not work with multiple Lua states or access from multiple threads. Accomplishing this would be a lot harder.
Aside from hooking in the compatibility layer, this port also fixes a problem with object identities. Multiple references could have the same object ID, but distinct types, and Lua Java would incorrectly map them all to the same Lua proxy. This case is very common with the OpenOffice.org UNO component API.
Garbage collection may still be troublesome. For some reason, weak references are collected, but the associated "gc" tag method is not called. At this point it is uncertain whether it is a problem with Lua 4.0 or Lua Java. The port contains a workaround, which has not been fully tested yet, but superficially seems to solve the problem.
Please send bug reports and enhancements to me at (first name) dot (last name) (at) gallaudet dot edu.
