bug in Integer.decode ?

Enno Rehling kaffe@rufus.w3.org
Thu, 13 Aug 1998 18:32:38 +0200


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@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