Hi
I have written a very simple helper class for a j2me app. It only contains a few integer fields, a constructor and two methods. I also have import java.lang.Math;
It compiles fine but when I run my application I get something like:
Error verifying method BoundBox.moveBy(II)V
approximate bytecode offset 18.
Inconsistent or missing stackmap at target
ALERT: java/lang/verifyError BoundBox
I am using Sun Wireless Studio built on Netbeans. I have not come accross this issue before, the few searches I have done on the net have resulted in me thinking that there is something wrong with the preverification process.
I only get this problem when I exclude the two methods from my class. Including them throws this error. They are fairly simple and only do some integer math.
Has anyone come accross this before and what is the workaround to it? Why am I getting this issue, isit because I am using the Math class?
Thank You