Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-25622

NumberValidator doesn't handle scientific notation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 3.2 (Release)
    • Apache Flex 4.10.0
    • Validators
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Using the attached application, if you enter in a number like 1234567879123400000000000000 into the textinput, you will get a validation error. This is because the scientific notation that is outputted from the NumberFormatter class isn't able to be handled from by the NumberValidator class.
      2.Even if you create an instance of a Number using this value, it will fail as well as the NumberValidator will convert the Number into a string (by calling the toString() method on the Number class which will return the number in scientific notation as well).

      Actual Results:

      The NumberValidator states that the value contains invalid characters.

      Expected Results:

      I expected the NumberValidator to be able to handle the output from the NumberFormatter class as well as the toString() method of the Number class.

      Workaround (if any):

      None without extending the NumberValidator class to add support for scientific notation.

      Attachments

        1. screenshot-1.jpg
          7 kB
          Yann Cabon

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: