Donate Share

Blitz JavaSpaces

Tracker: Patches

5 Fix hashCode algorithm - ID: 2791801
Last Update: Comment added ( dancreswell )

MangledEntry.hashCode calculate hashCode by calling hashCode on the same
array over and over again. Code misses a [i]. patch fixes this.


Dave Brosius ( dbrosius ) - 2009-05-14 16:11

5

Closed

Accepted

Dan Creswell

None

None

Public


Comment ( 1 )

Date: 2009-05-23 08:21
Sender: dancreswellProject Admin

The description for this patch is slightly mis-leading as it also
introduces a final on checkIntegrity which qualifies as a separate "fix".

In fact there's a bug where checkIntegrity is not being set during
deserialisation which means that final is not appropriate. Thus I've fixed
this bug and applied the hashCode fix but dropped the final.



Attached File ( 1 )

Filename Description Download
fixhashcode.patch Download

Changes ( 6 )

Field Old Value Date By
status_id Open 2009-05-23 08:21 dancreswell
resolution_id None 2009-05-23 08:21 dancreswell
assigned_to nobody 2009-05-23 08:21 dancreswell
allow_comments 1 2009-05-23 08:21 dancreswell
close_date - 2009-05-23 08:21 dancreswell
File Added 327030: fixhashcode.patch 2009-05-14 16:11 dbrosius