Author: jonesde
Date: Fri Sep 21 15:19:26 2007
New Revision: 578292

URL: http://svn.apache.org/viewvc?rev=578292&view=rev
Log:
Reverted fix that was not java 1.4 compatible, added a variation that goes 
to/from a String that has the same effect but is less efficient, but still works

Modified:
    
ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/GenericEntity.java

Modified: 
ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/GenericEntity.java
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/GenericEntity.java?rev=578292&r1=578291&r2=578292&view=diff
==============================================================================
--- 
ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/GenericEntity.java
 (original)
+++ 
ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/GenericEntity.java
 Fri Sep 21 15:19:26 2007
@@ -588,7 +588,7 @@
         // NOTE: for this to be used properly it should really be used as the 
java-type in the field type def XML files
         Object value = get(name);
         if (value instanceof Double) {
-            return BigDecimal.valueOf(((Double) value).doubleValue());
+            return new BigDecimal(((Double) value).toString());
         } else {
             return (BigDecimal) value;
         }


Reply via email to