You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by dr...@apache.org on 2009/11/19 21:29:49 UTC

svn commit: r882283 - /tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/PropertyConduitSourceImpl.java

Author: drobiazko
Date: Thu Nov 19 20:29:49 2009
New Revision: 882283

URL: http://svn.apache.org/viewvc?rev=882283&view=rev
Log:
TAP5-767: PropertyConduitSourceImpl should use english locale (instead of default locale) when evaluating decimals

Modified:
    tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/PropertyConduitSourceImpl.java

Modified: tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/PropertyConduitSourceImpl.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/PropertyConduitSourceImpl.java?rev=882283&r1=882282&r2=882283&view=diff
==============================================================================
--- tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/PropertyConduitSourceImpl.java (original)
+++ tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/PropertyConduitSourceImpl.java Thu Nov 19 20:29:49 2009
@@ -42,6 +42,7 @@
 import java.lang.reflect.Method;
 import java.lang.reflect.Modifier;
 import java.util.List;
+import java.util.Locale;
 import java.util.Map;
 
 public class PropertyConduitSourceImpl implements PropertyConduitSource, InvalidationListener
@@ -570,7 +571,7 @@
 
                         double decimalValue = Double.parseDouble(node.getText());
 
-                        previousReference = String.format("%fd", decimalValue);
+                        previousReference = String.format(Locale.ENGLISH, "%fd", decimalValue);
                         activeType = double.class;
 
                         node = null;