[
https://issues.apache.org/jira/browse/FLEX-25622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Mclean updated FLEX-25622:
---------------------------------
Labels: easyfix easytest (was: )
> NumberValidator doesn't handle scientific notation
> --------------------------------------------------
>
> Key: FLEX-25622
> URL: https://issues.apache.org/jira/browse/FLEX-25622
> Project: Apache Flex
> Issue Type: Bug
> Components: Validators
> Affects Versions: Adobe Flex SDK 3.2 (Release)
> Environment: Affected OS(s): All OS Platforms
> Language Found: English
> Reporter: Adobe JIRA
> Labels: easyfix, easytest
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira