[ mx4j-Bugs-835298 ] TabularDataSupport hashCode() computation incorrect
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #835298, was opened at 2003-11-03 15:22 Message generated for change (Settings changed) made by wkharold You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=450647&aid=835298&group_id=47745 Category: JMX implementation Group: Release 1.1.1 beta1 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Ward K Harold (wkharold) Assigned to: Ward K Harold (wkharold) Summary: TabularDataSupport hashCode() computation incorrect Initial Comment: The javadoc defines the TabularDataSupport hashCode() to be: "sum of the hash codes of all elements of information used in equals comparisons (ie: its tabular type and its content, where the content is defined as all the CompositeData values)". The current implementation does implement the specified computation. The current implementation also caches the hash code after the first computation. Since TabularData is not immutable this simple caching strategy is incorrect. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=450647&aid=835298&group_id=47745 ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/