You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my Java code, I initialize a static variable called x with value 1. In Lua, I access a class using luajava.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?
The text was updated successfully, but these errors were encountered:
In my Java code, I initialize a static variable called
x
with 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?The text was updated successfully, but these errors were encountered: