Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 196869 - [prov] metadata repository manager may return different instance
Summary: [prov] metadata repository manager may return different instance
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Incubator (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: equinox.incubator-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-17 15:55 EDT by Pascal Rapicault CLA
Modified: 2007-07-17 15:59 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Rapicault CLA 2007-07-17 15:55:41 EDT
For some reason when adding a repository that already exists, the repository manager seems to return a new instance of a metadata repository and delete the old one from its internal structure, thus causing multiple instance of the same repository to be available and causing consistency issue when the returned metadata repository does not check for data validity.
Comment 1 Pascal Rapicault CLA 2007-07-17 15:59:43 EDT
I have moved the check for existence at the beginning of the method. We now return the existing instance.