You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Sandro Martini (JIRA)" <ji...@apache.org> on 2013/02/15 17:09:13 UTC
[jira] [Resolved] (PIVOT-892) DoubleValidator and FloatValidator do
not allow exponents to be entered
[ https://issues.apache.org/jira/browse/PIVOT-892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandro Martini resolved PIVOT-892.
----------------------------------
Resolution: Fixed
The issue seems resolved.
Of course, be free to reopen in case something is still to fix.
> DoubleValidator and FloatValidator do not allow exponents to be entered
> -----------------------------------------------------------------------
>
> Key: PIVOT-892
> URL: https://issues.apache.org/jira/browse/PIVOT-892
> Project: Pivot
> Issue Type: Bug
> Components: wtk
> Affects Versions: 2.0.2
> Environment: All
> Reporter: Roger Whitcomb
> Assignee: Roger Whitcomb
> Priority: Minor
> Labels: validation
> Fix For: 2.0.3
>
> Attachments: 892.patch, num.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> The DoubleValidator and FloatValidator classes rely on a default NumberFormat instance to do parsing, however, a DecimalFormat is necessary in order to recognize floating values entered with exponents.
> As a result, using one of these validators currently will fail to validate a valid floating-point number such as "3.0e20".
--
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