Fix bug 43944. Use a message that exists.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 24 Dec 2007 15:51:53 +0000 (15:51 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 24 Dec 2007 15:51:53 +0000 (15:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@606704 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/el/lang/ELArithmetic.java

index 752a6e3..f78fea3 100644 (file)
@@ -364,8 +364,8 @@ public abstract class ELArithmetic {
             return coerce(new Short((short) ((Character) obj).charValue()));
         }
 
-        throw new IllegalArgumentException(MessageFactory.get("el.convert", obj,
-                objType));
+        throw new IllegalArgumentException(MessageFactory.get("error.convert",
+                obj, objType, "Number"));
     }
 
     protected abstract Number coerce(final String str);