[kaffe] short->int conversion problem

Dalibor Topic robilad at kaffe.org
Fri Mar 25 20:53:33 PST 2005


Daniel Bonniot wrote:
> 
> 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:

Merci, Daniel! I've been able to reproduce the bug easily with your 
class file, and the attached disassembly made debugging quite straight 
forward as well. Thanks a lot for submitting such clearly written, 
simple, and minimal bug reports!

The bug was just a cast to jint instead of jshort in kaffe.def, in the 
code handling getstatic for final primitive values.

I hope this fix makes nice run nicely! :)

cheers,
dalibor topic




More information about the kaffe mailing list