flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yann Cabon (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-25622) NumberValidator doesn't handle scientific notation
Date Tue, 25 Jun 2013 17:05:19 GMT

     [ https://issues.apache.org/jira/browse/FLEX-25622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Yann Cabon updated FLEX-25622:
------------------------------

    Attachment: screenshot-1.jpg

Tested that resolved issue against 4.10 and the spark NumberValidator still concider scientific
notation number as invalid.
                
> 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
>             Fix For: Apache Flex 4.10.0
>
>         Attachments: screenshot-1.jpg
>
>
> 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

Mime
View raw message