bug in Integer.decode ?

Enno Rehling enno at uni-paderborn.de
Thu Aug 13 09:32:38 PDT 1998


I just downloaded kaffe 1.0 and found the following interesting behavior:

public class Bug
{
    public static void main(String[] args)
    {
        System.out.println(Integer.Decode("880"));
        System.out.println(Integer.parseInt("880"));
    }
}

Th program prints:
80
80

It seems that Integer.decode() is not doing what it should do. This happens
on a PII system with Linux.

Has anyone else encountered this?

Enno.

Dipl. Inf. Enno Rehling -- enno at uni-paderborn.de
Borkumer Weg 21         -- http://hrz.uni-paderborn.de/~q09960/
33102 Paderborn         -- http://hrz.uni-paderborn.de/~q09960/eressea/
                        -- Home: 05251 480029  Office: 05251 60-6736



More information about the kaffe mailing list