Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 233200 - ServiceConfiguration needs equals/hashcode overridden
Summary: ServiceConfiguration needs equals/hashcode overridden
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RDT (show other bugs)
Version: 2.1M2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.1   Edit
Assignee: Chris Recoskie CLA
QA Contact: Greg Watson CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-21 08:36 EDT by Jason Montojo CLA
Modified: 2011-05-14 06:35 EDT (History)
0 users

See Also:


Attachments
Proposed patch (1.03 KB, patch)
2008-05-21 08:37 EDT, Jason Montojo CLA
g.watson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Montojo CLA 2008-05-21 08:36:25 EDT
In ServiceModelManager, ServiceConfiguration instances are put into Sets and Maps.  Since ServiceConfiguration doesn't override equals/hashcode, multiple configuration instances which map to the same name end up in these collections.
Comment 1 Jason Montojo CLA 2008-05-21 08:37:48 EDT
Created attachment 101241 [details]
Proposed patch

Implementation of equals/hashcode
Comment 2 Greg Watson CLA 2008-05-21 09:56:59 EDT
Committed.