[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-dev
Subject:    =?utf-8?Q?[jira]_[Commented]_(WW-3171)_"double"_and_"Double"?= =?utf-8?Q?_are_not_validated_with_the
From:       "Hudson (JIRA)" <jira () apache ! org>
Date:       2017-05-18 14:25:04
Message-ID: JIRA.12453407.1246299319000.241442.1495117504210 () Atlassian ! JIRA
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/WW-3171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16015825#comment-16015825 \
] 

Hudson commented on WW-3171:
----------------------------

SUCCESS: Integrated in Jenkins build Struts-JDK7-master #633 (See \
[https://builds.apache.org/job/Struts-JDK7-master/633/]) WW-3171 Converts numbers to \
                strings using locale (lukaszlenart: rev \
                20eced95008a9e08a20a59f287115ede00268897)
* (edit) core/src/main/java/com/opensymphony/xwork2/conversion/impl/StringConverter.java
 WW-3171 Uses proper number of digits when formatting double (lukaszlenart: rev \
                229afea64e77c2dba9eec62b2c339e9fc92c9ec7)
* (edit) core/src/test/resources/org/apache/struts2/views/jsp/ui/Select-3.txt
* (edit) core/src/test/java/com/opensymphony/xwork2/validator/DoubleRangeFieldValidatorTest.java
                
* (edit) core/src/main/java/com/opensymphony/xwork2/conversion/impl/StringConverter.java
                
* (add) core/src/test/java/com/opensymphony/xwork2/conversion/impl/StringConverterTest.java



> "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)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic