SimpleError equals method incorrect, causes some errors not to be displayed
---------------------------------------------------------------------------
Key: STS-269
URL: http://mc4j.org/jira/browse/STS-269
Project: Stripes
Issue Type: Bug
Components: Validation
Affects Versions: Release 1.4
Reporter: Tim Fennell
Assigned To: Tim Fennell
Fix For: Release 1.4.1
The problem is that the equals() method in SimpleError has a bug in it. It
doesn't not check that the message template or the parameters are the same, and
so thinks that any message for the same action path and field is equal!
A short term workaround would be to subclass SimpleError and redefine equals as:
super.equals(other) && getMessage().equals(other.getMessage());
Should probably check the other error/message equals() methods at the same time
to see if anything else got messed up with the whole message/error merge.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development