Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » Problems with preverification
Problems with preverification [message #573954] Thu, 11 June 2009 13:48
Wolfgang Grossinger is currently offline Wolfgang GrossingerFriend
Messages: 19
Registered: July 2009
Junior Member
I transferred a project from netbeans to eclipse where the source worked
without problems. Now I have a bunch of weird preverification problems.

1.) Error preverifying class ... (No description of the problem).

2.) Type java.lang.String Error preverifying class java.lang String. (No
further description and also NO PATH, so I have absolutely no idea where
to search for the problem.)

I tried to comment out some String references. After that, I had two more
error descriptions in my problems view. After uncommenting, there where 4
more errors or so, so the behavior is absolutely odd. After cleaning the
project, everything is ok again (the 4 additional errors are gone)

3.) public class MathUtils {

public static float round (float unrounded, int decimals) {
float less = (float) (Math.floor(unrounded * (10 * decimals)) /
(10f * decimals));
if ((less + 0.5f) > unrounded) {
return (float) (Math.ceil(unrounded * (10 * decimals)) / (10f
* decimals));
} else {
return less;

return unrounded;

public static int truncate(float value) {
//return new Float(Math.floor(value)).intValue();
return new Float(value).intValue();

This class has 2 preverifying errors in with CLDC 1.0. When you uncomment
the lines in error, a preverification error for the class is still
displayed which is definitely wrong (It works, when you clean the project,
but that shouldn't be necessary).

I know how to resolve most of the problems but I think you should know
that there a lot of things to do that preverification really works and
wanted to tell you some of the problems. Maybe I also did something wrong,
so I decided not to create a bug report for all that stuff.


Previous Topic:Problems with obfusctaion
Next Topic:Problems with preverification
Goto Forum:

Current Time: Sun Jun 24 16:57:24 GMT 2018

Powered by FUDForum. Page generated in 0.01707 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top