Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362993 - Removing RM removes the wrong one
Summary: Removing RM removes the wrong one
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RM (show other bugs)
Version: 5.0.3   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 5.0.4   Edit
Assignee: Greg Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-06 09:57 EST by Greg Watson CLA
Modified: 2011-11-06 10:15 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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