[kaffe] Simple program shows strange results

Ito Kazumitsu ito.kazumitsu@hitachi-cable.co.jp
Wed Mar 5 16:00:01 2003


In message "Re: [kaffe] Simple program shows strange results"
    on 03/03/06, Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp> writes:

> These are the results:

> [ito@pub2 ito]$ for i in kjc gcj Sun-javac; do ln -s -f Test.class.$i Test.class
> ; java Test; done
> 4.7761093E-34
> 4.7761093E-34
> 4.7761203E-34

On the other hand, all of them show good results when run with Sun's java
or compiled by GCJ.

bash$ for i in kjc gcj Sun-javac; do cp Test.class.$i Test.class; java Test; done
10.0
10.0
10.0
bash$ for i in kjc gcj Sun-javac; do cp Test.class.$i Test.class; gcj --main=Test Test.class; ./a.exe; rm a.exe; done
10.0
10.0
10.0