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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]