Revert previous fix as it needs correcting.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 8 Apr 2008 22:17:34 +0000 (22:17 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 8 Apr 2008 22:17:34 +0000 (22:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@646102 13f79535-47bb-0310-9956-ffa450edef68

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

index 8716057..f78fea3 100644 (file)
@@ -326,8 +326,8 @@ public abstract class ELArithmetic {
         return (obj != null && isNumberType(obj.getClass()));
     }
 
-    public final static boolean isNumberType(final Class<?> type) {
-        return (Number.class.isAssignableFrom(type));
+    public final static boolean isNumberType(final Class type) {
+        return type == (java.lang.Long.class) || type == Long.TYPE || type == (java.lang.Double.class) || type == Double.TYPE || type == (java.lang.Byte.class) || type == Byte.TYPE || type == (java.lang.Short.class) || type == Short.TYPE || type == (java.lang.Integer.class) || type == Integer.TYPE || type == (java.lang.Float.class) || type == Float.TYPE || type == (java.math.BigInteger.class) || type == (java.math.BigDecimal.class);
     }
 
     /**