United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 4895911 Fencepost error in hexadecimal string support causes exception for "0" input
4895911 : Fencepost error in hexadecimal string support causes exception for "0" input

Details
Type:
Bug
Submit Date:
2003-07-24
Status:
Resolved
Updated Date:
2003-08-01
Project Name:
JDK
Resolved Date:
2003-08-01
Component:
core-libs
OS:
generic
Sub-Component:
java.lang
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
5.0

Related Reports
Relates:

Sub Tasks

Description
Due to a fencepost error in the decimal/hexadecimal transition code for 4826774, Double.parseDouble (and related methods) will thrown an exception on the valid string "0".  No other numeric string is afffected by this error.

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger

FIXED IN:
tiger

INTEGRATED IN:
tiger
tiger-b14


                                     
2004-06-14
SUGGESTED FIX

src/share/classes/java/lang>sccs sccsdiff -r1.29 -r1.30 FloatingDecimal.java

------- FloatingDecimal.java -------
1038c1038
<               if (l >= i+1 ) {
---
>               if (l > i+1 ) {
                                     
2004-06-11
EVALUATION

The simple fix should be implemented asap.

###@###.### 2003-07-24
                                     
2003-07-24



Hardware and Software, Engineered to Work Together