Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338662 - ModelDescriptorRegistryInitializer must ignore files that don't exist
Summary: ModelDescriptorRegistryInitializer must ignore files that don't exist
Status: CLOSED FIXED
Alias: None
Product: Sphinx
Classification: Automotive
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: All All
: P1 major (vote)
Target Milestone: 0.7.0   Edit
Assignee: Stephan Eberle CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-02 08:24 EST by Stephan Eberle CLA
Modified: 2021-07-14 02:15 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Eberle CLA 2011-03-02 08:24:12 EST
ModelDescriptorRegistryInitializer is there for traversing the workspace, detecting all files with model content and creating corresponding IModelDescriptors in the ModelDescriptorRegistry.

= Problem description =
The current implementation creates IModelDescriptors regardless whether the encountered model files actually exist or not. This may lead to an inappropriate initialization of the ModelDescriptorRegistry.

= Resolution approach = 
Add a file exists check before calling ModelDescriptorRegistry.INSTANCE.addModel(file) in ModelDescriptorRegistryInitializer, line 63.
Comment 1 Stephan Eberle CLA 2011-03-02 09:04:23 EST
Fixed as proposed in description.
Comment 2 Balazs Grill CLA 2021-07-14 02:15:04 EDT
Mass-closing Resolved tickets