LuaJ Runs In Different Scope #88
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In my Java code, I initialize a static variable called
xwith value1. In Lua, I access a class usingluajava.newInstance. When I call a function from that class, it is supposed to print x. However, it seems that x is not 1, it's 0. If I do this with an Object, it becomes null. Is this a feature? If it is, how can I use Java values from Java functions called from Lua?