bug in Integer.parseInt()
Archie Cobbs
kaffe@rufus.w3.org
Tue, 21 Jul 1998 18:27:48 -0700 (PDT)
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