[kaffe] short->int conversion problem
Daniel Bonniot
Daniel.Bonniot at inria.fr
Fri Mar 25 19:01:57 PST 2005
Hi,
It seems kaffe is not converting properly from short to int in some
situations. I haven't been able to reproduce this with Java sources, so I just
attach a bytecode class. Dump:
Method name:"main" public static Signature: 28=(java.lang.String[])void
Attribute "Code", length:56, max_stack:2, max_locals:1, code_length:10
0: getstatic #12=<Field java.lang.System.out java.io.PrintStream>
3: getstatic #18=<Field java.lang.Short.MAX_VALUE short>
6: invokevirtual #24=<Method java.io.PrintStream.println (int)void>
9: return
'kaffe test.fun' prints -520847361 instead of 32767.
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fun.class
Type: application/x-java-vm
Size: 628 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20050326/e031f048/attachment-0002.bin
More information about the kaffe
mailing list