0 Replies Latest reply on Jan 30, 2009 3:49 PM by Jason Szeto

    [svn] 4777: Patch Submission for NumberBase bug fix

    Jason Szeto Level 3
      Revision: 4777
      Author: jszeto@adobe.com
      Date: 2009-01-30 15:49:41 -0800 (Fri, 30 Jan 2009)

      Log Message:
      -----------
      Patch Submission for NumberBase bug fix

      SDK-18112 - Number base has a variety of issues when using different decimal and thousands separators

      This patch submission fixes three bugs:

      - NumberBase.parseNumberString wasn't handling formatting for the value 0 when decimal/thousands separators or negative signs were included.
      The solution is to convert the string to a number and then return the string '0' if the value is 0.

      - Handle the case where a negative number with a multi-character currency symbol was losing the negative sign when passed through NumberBase.parseNumberString.

      - Remove the decimal point if it is the last character in the formatted number string.

      The patch submission was submitted here: http://bugs.adobe.com/jira/browse/SDK-18113 by Michael Labriola

      QE Notes: Add NumberFormatter/CurrencyFormatter tests for the use cases in the bug file for SDK-18112
      Doc Notes: n/a
      Bugs: SDK-18112
      Reviewer: Jason

      Ticket Links:
      ------------
      http://bugs.adobe.com/jira/browse/SDK-18112
      http://bugs.adobe.com/jira/browse/SDK-18113
      http://bugs.adobe.com/jira/browse/SDK-18112
      http://bugs.adobe.com/jira/browse/SDK-18112

      Modified Paths:
      --------------
      flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/formatters/NumberBase.as