bug in Integer.decode ?

Godmar Back kaffe@rufus.w3.org
Thu, 13 Aug 1998 11:06:04 -0600 (MDT)


 Looks like the substring(1, ) in the last else branch in Integer.decode
in libraries/javalib/java/lang/Integer.java should be a substring(0, ).
Fix later.

	- Godmar

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