DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=33988>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33988 Summary: Cookie.java hashCode method violates contract Product: HttpClient Version: 2.0.2 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Commons HttpClient AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] org.apache.commons.httpclient.Cookie hashCode() does not meet object.hashCode () contract. Cookie.hashCode() returns different values even though data used in equals() comparison is the same. Contract:**Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified.** Breaks use of cookie within collections such as when using contains(). Traced problem back to parent class NameValuePair. Cookie.hashCode() calls NameValuePair.hashCode() which relies on name/value hashes. Cookie does not rely on value to determine equality. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
