db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r683323 - /db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/SQLDecimal.java
Date Wed, 06 Aug 2008 16:52:01 GMT
Author: kmarsden
Date: Wed Aug  6 09:52:00 2008
New Revision: 683323

URL: http://svn.apache.org/viewvc?rev=683323&view=rev
Log:
DERBY-3813  Derby tests for the existance of BigDecimal methods toPlainString and bdPrecison
but does not check if they were found before using them.


Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/SQLDecimal.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/SQLDecimal.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/SQLDecimal.java?rev=683323&r1=683322&r2=683323&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/SQLDecimal.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/SQLDecimal.java Wed Aug  6
09:52:00 2008
@@ -317,7 +317,7 @@
 		BigDecimal localValue = getBigDecimal();
 		if (localValue == null)
 			return null;
-		else if (JVMInfo.JDK_ID < JVMInfo.J2SE_15)
+		else if (toPlainString == null)
 			return localValue.toString();
         else
         {
@@ -1157,7 +1157,7 @@
             return 0;
         }
         
-        if (JVMInfo.JDK_ID >= JVMInfo.J2SE_15)
+        if (bdPrecision != null)
 		{
 	        // use reflection so we can still compile using JDK1.4
 			// if we are prepared to require 1.5 to compile then this can be a



Mime
View raw message