db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r552333 - /db/torque/runtime/trunk/src/java/org/apache/torque/oid/IDBroker.java
Date Sun, 01 Jul 2007 16:24:21 GMT
Author: tv
Date: Sun Jul  1 09:24:19 2007
New Revision: 552333

URL: http://svn.apache.org/viewvc?view=rev&rev=552333
Log:
Change BigDecimal constructors to use double. This should make the compile
with JDK 1.5 work with Java 1.4 and before. Fixes TORQUE-97

Modified:
    db/torque/runtime/trunk/src/java/org/apache/torque/oid/IDBroker.java

Modified: db/torque/runtime/trunk/src/java/org/apache/torque/oid/IDBroker.java
URL: http://svn.apache.org/viewvc/db/torque/runtime/trunk/src/java/org/apache/torque/oid/IDBroker.java?view=diff&rev=552333&r1=552332&r2=552333
==============================================================================
--- db/torque/runtime/trunk/src/java/org/apache/torque/oid/IDBroker.java (original)
+++ db/torque/runtime/trunk/src/java/org/apache/torque/oid/IDBroker.java Sun Jul  1 09:24:19
2007
@@ -744,7 +744,7 @@
         // If prefetch is turned off we simply return 1
         if (!configuration.getBoolean(DB_IDBROKER_PREFETCH, true))
         {
-            quantity = new BigDecimal(1);
+            quantity = new BigDecimal((double)1);
         }
         // Initialize quantity, if necessary.
         else if (quantityStore.containsKey(tableName))
@@ -772,7 +772,7 @@
             }
             catch (Exception e)
             {
-                quantity = new BigDecimal(10);
+                quantity = new BigDecimal((double)10);
             }
             finally
             {



---------------------------------------------------------------------
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