bug in Integer.decode ?

Godmar Back gback at cs.utah.edu
Thu Aug 13 10:06:04 PDT 1998


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