Konstantin Kolinko wrote: > > 2010/7/6 Roxana <missbl...@gmail.com>: > BTW, if you really need to compare apples with oranges, you can > convert one of them or both to strings. > Best regards, > Konstantin Kolinko >
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/lang/ELSupport.java?revision=981816&view=markup equals: 144 } else if (obj0.getClass().isEnum()) { 145 return obj0.equals(coerceToEnum(obj1, obj0.getClass())); coerceToEnum(obj, type): 180 if (type.isAssignableFrom(obj.getClass())) { 181 return (Enum<?>) obj; 182 } 183 184 if (!(obj instanceof String)) { 185 throw new ELException(MessageFactory.get("error.convert", 186 obj, obj.getClass(), type)); 187 } enum A{ test } enum B{ test } A.test==B.test throws the exception. couldn't it just return false? Regards Sbrejeon -- View this message in context: http://old.nabble.com/Strange-difference-in-behavior-ELSupport-in-Tomcat-6.0.20-and-Tomcat--6.0.26-tp29088066p29815264.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org