JDK-4895911 : Fencepost error in hexadecimal string support causes exception for "0" input
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-07-24
  • Updated: 2003-08-01
  • Resolved: 2003-08-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 tigerFixed
Related Reports
Relates :  
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
14-06-2004

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 ) {
11-06-2004

EVALUATION The simple fix should be implemented asap. ###@###.### 2003-07-24
24-07-2003