myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Heinen (Updated) (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Updated] (MYFACES-3196) NumberConverter does not observe NumberFormat's parsePosition
Date Wed, 07 Mar 2012 08:36:58 GMT

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

Michael Heinen updated MYFACES-3196:
------------------------------------

    Status: Patch Available  (was: Open)
    
> NumberConverter does not observe NumberFormat's parsePosition
> -------------------------------------------------------------
>
>                 Key: MYFACES-3196
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3196
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: General
>    Affects Versions: 2.0.7
>            Reporter: Bastian Voigt
>            Priority: Minor
>
> When parsing numbers with java.text.NumberFormat, it is important to observe the ParsePosition.
> If, after parsing a number, the parsePosition is less than the length of the input string,
this actually means there was a problem. Example:
> With grouping disabled, the String "0,23" is parsed to 0, and the parsePosition is set
to 1. This should be considered as a parsing error.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message