Author: jonesde
Date: Thu Nov  1 02:26:10 2012
New Revision: 1404454

URL: http://svn.apache.org/viewvc?rev=1404454&view=rev
Log:
Fixed bug where the BigDecimal was serialized but there was no support for 
deserialization of BigDecimal

Modified:
    
ofbiz/branches/release11.04/framework/entity/src/org/ofbiz/entity/serialize/XmlSerializer.java

Modified: 
ofbiz/branches/release11.04/framework/entity/src/org/ofbiz/entity/serialize/XmlSerializer.java
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/release11.04/framework/entity/src/org/ofbiz/entity/serialize/XmlSerializer.java?rev=1404454&r1=1404453&r2=1404454&view=diff
==============================================================================
--- 
ofbiz/branches/release11.04/framework/entity/src/org/ofbiz/entity/serialize/XmlSerializer.java
 (original)
+++ 
ofbiz/branches/release11.04/framework/entity/src/org/ofbiz/entity/serialize/XmlSerializer.java
 Thu Nov  1 02:26:10 2012
@@ -316,6 +316,9 @@ public class XmlSerializer {
             } else if ("std-Locale".equals(tagName)) {
                 String valStr = element.getAttribute("value");
                 return UtilMisc.parseLocale(valStr);
+            } else if ("std-BigDecimal".equals(tagName)) {
+                String valStr = element.getAttribute("value");
+                return new BigDecimal(valStr);
             } else if ("std-Date".equals(tagName)) {
                 String valStr = element.getAttribute("value");
                 DateFormat formatter = getDateFormat();


Reply via email to