Author: rahul
Date: Mon Jul 13 00:05:59 2009
New Revision: 793435

URL: http://svn.apache.org/viewvc?rev=793435&view=rev
Log:
Correct cut and paste errors.

Modified:
    
commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/Coercion.java

Modified: 
commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/Coercion.java
URL: 
http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/Coercion.java?rev=793435&r1=793434&r2=793435&view=diff
==============================================================================
--- 
commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/Coercion.java 
(original)
+++ 
commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/Coercion.java 
Mon Jul 13 00:05:59 2009
@@ -166,10 +166,10 @@
         } else if (val instanceof Number) {
             return new BigDecimal(val.toString());
         } else if (val instanceof Boolean) {
-            throw new Exception("Boolean->Double coercion exception");
+            throw new Exception("Boolean->BigDecimal coercion exception");
         }
 
-        throw new Exception("Double coercion exception");
+        throw new Exception("BigDecimal coercion exception");
     }
 
     /**
@@ -195,10 +195,10 @@
         } else if (val instanceof Number) {
             return BigInteger.valueOf(((Number) val).longValue());
         } else if (val instanceof Boolean) {
-            throw new Exception("Boolean->Integer coercion exception");
+            throw new Exception("Boolean->BigInteger coercion exception");
         }
 
-        throw new Exception("Integer coercion exception");
+        throw new Exception("BigInteger coercion exception");
     }
 
     /**


Reply via email to