You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/05/12 14:02:04 UTC
[jira] [Commented] (WW-3171) "double" and "Double" are not validated with the same decimal séparator
[ https://issues.apache.org/jira/browse/WW-3171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16008165#comment-16008165 ]
ASF GitHub Bot commented on WW-3171:
------------------------------------
GitHub user lukaszlenart opened a pull request:
https://github.com/apache/struts/pull/138
WW-3171 WW-3357 WW-3650 WW-4581: Locale aware converters
This PR introduces Locale aware conversion of `BigDecimal` and `Double` and `Double`
[WW-3171](https://issues.apache.org/jira/browse/WW-3171)
[WW-3357](https://issues.apache.org/jira/browse/WW-3357)
[WW-3650](https://issues.apache.org/jira/browse/WW-3650)
[WW-4581](https://issues.apache.org/jira/browse/WW-4581)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/lukaszlenart/struts locale-aware-converters
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/struts/pull/138.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #138
----
commit f874f9cde56f74c5161b17e645f779805c51a04b
Author: Lukasz Lenart <lu...@apache.org>
Date: 2017-05-12T10:19:48Z
WW-4581 Uses proper logic to convert String to BigDecimal
commit 266d78d32c786276f37ae701267f6719ea9f8a75
Author: Lukasz Lenart <lu...@apache.org>
Date: 2017-05-12T11:48:14Z
WW-3650 Supports double conversion for different locale
commit 20eced95008a9e08a20a59f287115ede00268897
Author: Lukasz Lenart <lu...@apache.org>
Date: 2017-05-12T12:40:20Z
WW-3171 Converts numbers to strings using locale
commit 229afea64e77c2dba9eec62b2c339e9fc92c9ec7
Author: Lukasz Lenart <lu...@apache.org>
Date: 2017-05-12T13:58:54Z
WW-3171 Uses proper number of digits when formatting double
----
> "double" and "Double" are not validated with the same decimal séparator
> -----------------------------------------------------------------------
>
> Key: WW-3171
> URL: https://issues.apache.org/jira/browse/WW-3171
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.0.14
> Environment: Windows or Linux - Running under Tomcat 6.0 - fr_FR
> Reporter: françois-frédéric jean
> Assignee: Lukasz Lenart
> Priority: Critical
> Fix For: 2.5.next
>
>
> I had this strange behaviour.
> I have two double in my Action (extends ActionSupport):
> ---------------------------
> private double dbl1;
> private Double dbl2;
> ---------------------------
> With there respective getters and setters.
> But, when I call the action with these two doubles (from a classical HTML form), I must put a "dot" for the double, and a "comma" for the Double as a decimal separator,
> I'm surprised by this behaviour .... Nothing particular was done (HTML form calling an action). I can't imagine what is the reason of this behaviour, so I raise it as a bug.
> Regards
> Francillo
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)