| Reply | « Previous Thread | Next Thread » |
|
i work in eclipse with all latest versions. for some strange reason the classname gets marked red when i use either one of the following lines:
float x = 0.54f; double x = 0.54; it says "Error preverifying class" - and nothing more. and, with one of these: float x = 0.0f; double x = 0; it says "Error preverifying class: VERIFIER ERROR [location]: Floating point result not allowed" i am totally lost on this one... thanks, oliver |
|
I can't explain why you get different error messages, but the verification fail on float or double expressions is because most devices will not support these types (there are no floating-point instructions in most VMs). You must be using a CLDC-1.1 compliant device to support floats, and you must execute the preverifier with the right options - check the documentation for these.
Graham. |
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
|
right, float and double simply are not supported and the preverify process checks that. it seemed quite uncommon that such primitive data types cause these errors.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|