bug in Integer.parseInt()
Archie Cobbs
archie at whistle.com
Tue Jul 21 18:27:48 PDT 1998
This fixes a bug in Integer.parseInt():
Index: Integer.java
===================================================================
RCS file: /cvs/mod/net/kaffe/libraries/javalib/java/lang/Integer.java,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -c -r1.1.1.1 -r1.1.1.1.2.1
*** Integer.java 1998/07/14 16:49:31 1.1.1.1
--- Integer.java 1998/07/22 01:25:04 1.1.1.1.2.1
***************
*** 118,124 ****
/* Check for negativity */
if (s.charAt(0)=='-')
{
! return parseInt(s.substring(1))*-1;
}
else
{
--- 118,124 ----
/* Check for negativity */
if (s.charAt(0)=='-')
{
! return parseInt(s.substring(1), radix)*-1;
}
else
{
-Archie
___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
More information about the kaffe
mailing list