×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    24

    Unhappy non-causal error preverifying class

    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

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395
    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.

  3. #3
    Registered User
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    24
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •