You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Mitth'raw'nuruodo (JIRA)" <ji...@apache.org> on 2017/08/04 02:51:00 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=16113846#comment-16113846 ]
Mitth'raw'nuruodo commented on WW-3171:
---------------------------------------
It's a bit unfortunate that this was bundled with 2.5.12, which included important security fixes, despite being recognised as a potentially breaking change. A 2.5.10.2 release with just the security fixes would have been nice.
> "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.12
>
>
> 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.4.14#64029)