Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326536 - ModelUtils does not report resource load problems
Summary: ModelUtils does not report resource load problems
Status: CLOSED FIXED
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows XP
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 335759
  Show dependency tree
 
Reported: 2010-09-29 09:39 EDT by Ed Willink CLA
Modified: 2011-03-30 08:48 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-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