[kaffe] Float.java problems (on irix)

Riccardo zuse at libero.it
Mon Jul 12 11:08:43 PDT 2004


Hello,

IRIX goes so far as running KJC ! it fails at some point during the 
class library build, I will report that together with a patch.

during class library build I get:

[ parsed java/lang/Exception.java in 2,638 ms ]
[ parsed java/lang/ExceptionInInitializerError.java in 787 ms ]
java/lang/Float.java:25: error:Float literal "1.4012984643248170709e-45" 
is too small [JLS 3.10.2]
[ parsed java/lang/Float.java in 2,184 ms ]

now I checked for FLT_MIN in my limits.h on IRIX and found:

#ifdef __STDC__
#define FLT_MAX         3.40282347E+38F /* max decimal value of a 
"float" */
#define FLT_MIN         1.17549435E-38F /* min decimal value of a 
"float" */
#else
#define FLT_MAX         3.40282347E+38  /* max decimal value of a 
"float" */
#define FLT_MIN         1.17549435E-38  /* min decimal value of a 
"float" */
#endif /* __STDC__ */


while the values in Float.java are different , both as min as as max, 
but the MIN is clearly more than an underflow.

I checked on solaris/sparc and limits.h says
#define FLT_MAX         3.402823466E+38F  /* max decimal value of a 
"float" */
#define FLT_MIN         1.175494351E-38F  /* min decimal value of a 
"float" */

so either java has some strange types or it is cheating on the FPU or I 
don't know at all

Cheers, Riccardo





More information about the kaffe mailing list