Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK 3.2 (Release)
-
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.