David Mansfield created OGNL-50:
-----------------------------------
Summary: OgnlOps.equal fails for two non-numeric objects that are
not Comparable
Key: OGNL-50
URL: https://issues.apache.org/jira/browse/OGNL-50
Project: Commons OGNL
Issue Type: Bug
Reporter: David Mansfield
OgnlOps.equal calls OgnlOps.isEqual, which, for two objects of some class X
which are not equal according to X.equals() method, will then call
OgnlOps.compareWithConversion. This method will throw an
IllegalArgumentException on or around line 92 unless the class is a Comparable.
This exception is wrong or is not caught properly in the isEqual method.
How about wrapping the compareWithConversion in isEqual in a try/catch?
I'm currently using ognl 3.0.1 but I checked latest code in SVN and it doesn't
appear any different.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira