You Are Here:

Community: Developer Discussion Boards

#1 Old Unhappy non-causal error preverifying class - 2005-03-15, 20:54

Join Date: Aug 2004
Posts: 24
Location: Germany
dreamix
Offline
Registered User
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
Reply With Quote

#2 Old 2005-03-19, 18:54

Join Date: Jun 2003
Posts: 4,335
Location: Cheshire, UK
grahamhughes's Avatar
grahamhughes
Online
Forum Nokia Champion
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.
Reply With Quote

#3 Old 2005-04-02, 19:10

Join Date: Aug 2004
Posts: 24
Location: Germany
dreamix
Offline
Registered User
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia