Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326142 - ModelUtils.load corrupted user-defined ResourceFactories
Summary: ModelUtils.load corrupted user-defined ResourceFactories
Status: CLOSED FIXED
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows Vista
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-24 09:12 EDT by Ed Willink CLA
Modified: 2010-09-28 02:46 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 Ed Willink CLA 2010-09-24 09:12:29 EDT
The logic of ModelUtils.load(URI modelURI, ResourceSet resourceSet) is

if global registry has a definition
   copy global registry setting to local registry
else
   put XMI registration in the local registry

Any prior user initialization of the local registry is corrupted.
Comment 1 Laurent Goubet CLA 2010-09-27 02:39:32 EDT
Hi Ed,

This ... was a known bug that I was sure I had fixed. Thanks for reopening, I'll try and see what I did wrong.
Comment 2 Ed Willink CLA 2010-09-27 02:48:23 EDT
NB. The report is against Acceleo 3.0.0, so it may be fixed in CVS.
Comment 3 Laurent Goubet CLA 2010-09-27 03:22:17 EDT
The problem is fixed in ModelUtils#createResource(), but still remains in ModelUtils#load(URI, ResourceSet). This has to be fixed in both 3.0.* and 3.1.*.

I expect the fix to be in 3.1.0M2 and 3.0.2RC1.
Comment 4 Laurent Goubet CLA 2010-09-28 02:45:31 EDT
This regression has been fixed on HEAD and the 3.0 maintenance branch. The fix will be available in the incoming 3.1.0M2 and 3.0.2RC1.
Comment 5 Laurent Goubet CLA 2010-09-28 02:46:00 EDT
Forgot to close and fix with the previous comment