This was discussed on the dev list a few weeks ago. If two objects being
compared are of different (non-numeric) classes, I'd like to see equality be
based on toString (rather than just be false). This just makes sense in a
template environment where types are not visible to template writers, and is
also the way that JSTL/JSP 2.0 works. This is particularly useful when
comparing a literal String to a class implementing Bloch's Typesafe
Enumeration pattern  or a StringBuffer.