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

Bug 326536

Summary: ModelUtils does not report resource load problems
Product: [Modeling] Acceleo Reporter: Ed Willink <ed>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: stephane.begaudeau
Version: 3.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 335759    

Description Ed Willink CLA 2010-09-29 09:39:18 EDT
ModelUtils.load performs a getResource() for the user model but neglects to

a) check modelResource.getErrors() for any direct problems
--- e.g a SAXException for content in prolog when loading an Xtext resource without a regiustered factory

b) check resourceSet.getResources().getErrors() for indirect problems such as remote proxy issues

Perhaps Acceleo should do a resolveAll to provoke early proxy error detection.
Comment 1 Stephane Begaudeau CLA 2011-03-30 08:48:56 EDT
Contributed on HEAD, it will be available in Acceleo 3.1M7