Author: drobiazko
Date: Tue Jul 14 21:48:31 2009
New Revision: 794081
URL: http://svn.apache.org/viewvc?rev=794081&view=rev
Log:
TAP5-767: PropertyConduitSourceImpl should use english locale (instead of
default locale) when evaluating decimals
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/PropertyConduitSourceImpl.java
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/PropertyConduitSourceImpl.java
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/PropertyConduitSourceImpl.java?rev=794081&r1=794080&r2=794081&view=diff
==============================================================================
---
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/PropertyConduitSourceImpl.java
(original)
+++
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/PropertyConduitSourceImpl.java
Tue Jul 14 21:48:31 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;