wonder Expert Licensed User Longtime User Nov 16, 2015 #1 Hey guys!! I really need your help! I'm experiencing exactly the same problem as mentioned in the link below. http://stackoverflow.com/questions/4898578/object-array-assignment-problem The problem is, I don't know how to apply the solution they provide. It's because your variables are static i.e. they belong to the class, rather than to an instance. Take a look at Java Tutorials | Understanding Instance and Class Members for more information about what this means. You should remove the static keyword, so that they become instance variables. Click to expand... There is no static keyword in B4X, right? Can this be solved with Reflection / JavaObject?
Hey guys!! I really need your help! I'm experiencing exactly the same problem as mentioned in the link below. http://stackoverflow.com/questions/4898578/object-array-assignment-problem The problem is, I don't know how to apply the solution they provide. It's because your variables are static i.e. they belong to the class, rather than to an instance. Take a look at Java Tutorials | Understanding Instance and Class Members for more information about what this means. You should remove the static keyword, so that they become instance variables. Click to expand... There is no static keyword in B4X, right? Can this be solved with Reflection / JavaObject?
JordiCP Expert Licensed User Longtime User Nov 16, 2015 #2 If your class is declared in Java, just remove the "static" keyword in your class members. Last edited: Nov 17, 2015 Upvote 0
R Roycefer Well-Known Member Licensed User Longtime User Nov 17, 2015 #3 You should post your own B4X code that is causing the problem. Or at least a small snippet that produces the same problem. Upvote 0
You should post your own B4X code that is causing the problem. Or at least a small snippet that produces the same problem.
wonder Expert Licensed User Longtime User Nov 17, 2015 #4 Roycefer said: You should post your own B4X code that is causing the problem. Or at least a small snippet that produces the same problem. Click to expand... Sure, the original code contains a medium-size class file, collision detection and physics. I'll try to simplify it down to the heart of the problem and post it here. Upvote 0
Roycefer said: You should post your own B4X code that is causing the problem. Or at least a small snippet that produces the same problem. Click to expand... Sure, the original code contains a medium-size class file, collision detection and physics. I'll try to simplify it down to the heart of the problem and post it here.
wonder Expert Licensed User Longtime User Nov 17, 2015 #5 Although symptoms were the same as the ones reported in the link I've posted, the cause was entirely different. It turns out my whole class code structure was wrong. Thank you for you interest. Upvote 0
Although symptoms were the same as the ones reported in the link I've posted, the cause was entirely different. It turns out my whole class code structure was wrong. Thank you for you interest.