[kaffe] Simple program shows strange results

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


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

> These are the results:

> [ito at 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




More information about the kaffe mailing list