[kaffe] Simple program shows strange results

Ito Kazumitsu kaz at maczuka.gcd.org
Tue Mar 4 14:27:02 PST 2003


>>>>> ":" == Ito Kazumitsu <kaz at maczuka.gcd.org> writes:

:> bash-2.05b$ cat Test.java; javac Test.java; java Test
:> public class Test {
:>   public static void main(String[] args) {
:>       float x = 10.0f;
:>       if (x < 7.0f) {
:>         System.err.println("x<7: " + x);
:>         x = 7.0f;
:>       }
:>       System.err.println(x);
:>   }
:> }
:> 4.8169137E-34
:> bash-2.05b$

Additional Information:

bash-2.05b$ uname -a
FreeBSD ph.maczuka.gcd.org 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Oct  9 15:08:34 GMT 2002     root at builder.freebsdmall.com:/usr/obj/usr/src/sys/GENERIC  i386
bash-2.05b$ kaffe -fullversion
Kaffe Virtual Machine

Copyright (c) 1996-2002 Kaffe.org project contributors (please see
  the source code for a full list of contributors).  All rights reserved.
Portions Copyright (c) 1996-2002 Transvirtual Technologies, Inc.

The Kaffe virtual machine is free software, licensed under the terms of
the GNU General Public License.  Kaffe.org is a an independent, free software
community project, not directly affiliated with Transvirtual Technologies,
Inc.  Kaffe is a Trademark of Transvirtual Technologies, Inc.  Kaffe comes
with ABSOLUTELY NO WARRANTY.

Engine: Just-in-time v3   Version: 1.1.x-cvs   Java Version: 1.1
Configuration/Compilation options:
  Compile date  : Wed Mar 5 00:53:51 JST 2003
  Compile host  : ph.maczuka.gcd.org
  Install prefix: /usr/local/kaffe
  Thread system : unix-jthreads
  CC            : gcc
  CFLAGS        : -g -O2 -Wall -Wstrict-prototypes
  LDFLAGS       : 
  ChangeLog head: 2003-03-01 Dalibor Topic <robilad at yahoo.com>
bash-2.05b$ 




More information about the kaffe mailing list