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

Bug 326142

Summary: ModelUtils.load corrupted user-defined ResourceFactories
Product: [Modeling] Acceleo Reporter: Ed Willink <ed>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: laurent.goubet
Version: 3.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

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