db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gmon...@apache.org
Subject svn commit: r598359 - /db/torque/village/trunk/src/java/com/workingdogs/village/Value.java
Date Mon, 26 Nov 2007 17:45:21 GMT
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


Mime
View raw message