Bug in Float.valueOf(String)
Maxim Kizub
max at immsp.kiev.ua
Mon Jan 25 11:54:33 PST 1999
Hello.
Please, change in kaffe/clib/native/Float.c,
in method java_lang_Float_valueOf:
/*
* Convert string to float object. (JDK 1.0.2)
*/
struct Hjava_lang_Float*
java_lang_Float_valueOf(struct Hjava_lang_String* str)
{
struct Hjava_lang_Float* obj;
/* Floats are passed as doubles in C!!!!!
obj = (struct
Hjava_lang_Float*)execute_java_constructor("java.lang.Float", 0, "(F)V",
(float)java_lang_Double_valueOf0(str));
*/
obj = (struct
Hjava_lang_Float*)execute_java_constructor("java.lang.Float", 0, "(D)V",
java_lang_Double_valueOf0(str));
return (obj);
}
Regards
Maxim Kizub
More information about the kaffe
mailing list