JDK-6257182 : Refactor fix for 6255285
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.math
  • Affected Version: 6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-04-19
  • Updated: 2010-04-02
  • Resolved: 2005-04-30
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 JDK 6
5.0u5Fixed 6 b35Fixed
Related Reports
Relates :  
Description
The fix for 6255285 can be written better.

###@###.### 2005-04-19 03:57:25 GMT

Comments
SUGGESTED FIX src/share/classes/java/math>sccs sccsdiff -r1.55 -r1.56 BigDecimal.java ------- BigDecimal.java ------- 344,346c344 < if (c < '1' || c > '9') { // if known nonzero ASCII digit, skip < while ((c == '0' || (Character.digit(c, 10) == 0)) && < len > 1) { --- > while (len > 10 && Character.digit(c, 10) == 0) { 350d347 < } 352c349 < if (len > 10) // too many exponent digits --- > if (len > 10) // too many nonzero exponent digits ###@###.### 2005-04-19 04:06:09 GMT
19-04-2005

EVALUATION A fine idea. ###@###.### 2005-04-19 03:57:25 GMT
19-04-2005