You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by gm...@apache.org on 2007/11/26 18:45:21 UTC

svn commit: r598359 - /db/torque/village/trunk/src/java/com/workingdogs/village/Value.java

Author: gmonroe
Date: Mon Nov 26 09:45:19 2007
New Revision: 598359

URL: http://svn.apache.org/viewvc?rev=598359&view=rev
Log:
Update Fix for Torque-53 to use JVM 1.4 constructors instead of 1.5... Thanks to Brendan Miller for pointing this out and supplying patch.

Modified:
    db/torque/village/trunk/src/java/com/workingdogs/village/Value.java

Modified: db/torque/village/trunk/src/java/com/workingdogs/village/Value.java
URL: http://svn.apache.org/viewvc/db/torque/village/trunk/src/java/com/workingdogs/village/Value.java?rev=598359&r1=598358&r2=598359&view=diff
==============================================================================
--- db/torque/village/trunk/src/java/com/workingdogs/village/Value.java (original)
+++ db/torque/village/trunk/src/java/com/workingdogs/village/Value.java Mon Nov 26 09:45:19 2007
@@ -383,7 +383,7 @@
                 return (BigDecimal) valueObject;
             }
             else if ( isDouble() ) {
-                return new BigDecimal((Double) valueObject );
+                return new BigDecimal(((Double) valueObject).doubleValue() );
             }
             else if ( isFloat() ) 
             {
@@ -428,7 +428,8 @@
             }
             else if ( isDouble() )
             {
-                return new BigDecimal((Double) valueObject ).setScale(scale);
+                return new BigDecimal( ((Double) valueObject).doubleValue())
+                                                             .setScale(scale);
             } 
             else if ( isFloat() ) 
             {



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org