Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362993

Summary: Removing RM removes the wrong one
Product: [Tools] PTP Reporter: Greg Watson <g.watson>
Component: RMAssignee: Greg Watson <g.watson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 5.0.3   
Target Milestone: 5.0.4   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Greg Watson CLA 2011-11-06 09:57:53 EST
Create two jaxb RMs with different names. Removing the second one in the list. Shut down and restart Eclipse. When Eclipse restarts, the first RM was removed instead, and the second is still in the list.
Comment 1 Greg Watson CLA 2011-11-06 10:15:18 EST
The problem was comparing the service provider using equals rather than ==. In the former case, it was actually comparing the service provider type, so finding the first RM with a service provider of the same type.
Comment 2 Greg Watson CLA 2011-11-06 10:15:57 EST
Fixed in HEAD and ptp_5_0