This is an exported version of the JIRA issue tracker. Please use the Google Code site to open new tickets or report updates to these existing tickets. Feel free to contact the mailing list with any questions.

[TRA-5] Wrong implementation of hashCode in BreadCrumb
Created: Tue, 22 Nov 2005 06:45:40 -0800 (PST)  Updated: Tue, 22 Nov 2005 06:45:40 -0800 (PST)

Status:Open
Project:Trail-Taglib
Component/s:
Affects Version/s:0.3
Fix Version/s:

Type:BugPriority: Major
Reporter:Barak OriAssignee:Henri Yandell
Resolution:Unresolved 
Environment:All


 Description   
While the equals method ignores the parameters within the URL, the hashCode function doesn't.
This means that for two URLs with the same address but different parameters, equals will return true, but hashCode will return different values, which contradicts the definition of these methods (See Joshua Bloch's Effective Java). Function hashCode should ignore the parameters as well.

I'm planning to make some additions to this taglib, and would like to talk to the original author. If you hear this, please write to me to XXXXX@gmail.com (replace XXXXX with the user name in JIRA - this is used to avoid spam robots.