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

Bug 368385

Summary: <<ERROR message>> xPand expression doesn't produce the message in the stack trace
Product: [Modeling] GMF-Tooling Reporter: Michael Golubev <borlander>
Component: Generation / TemplatesAssignee: Michael Golubev <borlander>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: borlander
Version: unspecifiedFlags: borlander: juno+
Target Milestone: 3.0M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Michael Golubev CLA 2012-01-11 13:43:45 EST
Steps to reproduce: 

Add «ERROR 'errorMessage'» into some xpand DEFINE that is used by the generation. 
Run the generator.
=> 
The generator does fail at the correct place, but neither stack trace nor the error dialog window contain the 'errorMessage' at all: 

java.lang.RuntimeException: Error in xpt::Common:39:
at org.eclipse.gmf.internal.xpand.ast.ErrorStatement.evaluateInternal(ErrorStatement.java:41)
at org.eclipse.gmf.internal.xpand.ast.Statement.evaluate(Statement.java:29)
at org.eclipse.gmf.internal.xpand.ast.AbstractDefinition.evaluate(AbstractDefinition.java:82)
...



This is
Comment 1 Michael Golubev CLA 2012-05-30 01:27:46 EDT
batch update: Verified in RC2
Comment 2 Michael Golubev CLA 2012-05-30 01:31:17 EDT
Verified in RC2