You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Roger Whitcomb (JIRA)" <ji...@apache.org> on 2018/02/02 04:50:00 UTC

[jira] [Closed] (PIVOT-1025) Decimal, Double and Float validators don't allow a leading "+" sign

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

Roger Whitcomb closed PIVOT-1025.
---------------------------------
    Resolution: Fixed

I think this is the best we can do, so going to close this issue.

> Decimal, Double and Float validators don't allow a leading "+" sign
> -------------------------------------------------------------------
>
>                 Key: PIVOT-1025
>                 URL: https://issues.apache.org/jira/browse/PIVOT-1025
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-validation
>         Environment: All
>            Reporter: Roger Whitcomb
>            Assignee: Roger Whitcomb
>            Priority: Minor
>             Fix For: 2.1
>
>
> Running the TextInputValidatorTest program with some edge cases revealed that although the validators allow a leading "-" for numbers (as they should), a leading "+" sign gives a validation error or "not valid" status, which should be perfectly acceptable.
> The underlying problem seems to be that since the DecimalFormat normally used doesn't really work right if you specify a leading positive string (that is, it will require it, not just allow it), that things are a bit wonky there.  So, we will have to allow it ourselves with code outside the "Format" validation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)