Community
Participate
Working Groups
Build Identifier: M20090917-0800 A globalvar definition within the org.eclipse.xpand2.Generator component configuration results to an error if the value is of type String. <globalVarDef name="test4" value="foobar"/> <-- result in error: Error in Component of type org.eclipse.xpand2.Generator: EvaluationException : Couldn't find type or property 'foobar' nofile[0,6] on line 1 'foobar' <globalVarDef name="test4" value="${foobar}"/> <-- result in error: Error in Component of type org.eclipse.xpand2.Generator: EvaluationException : Couldn't find type or property 'foo' nofile[0,6] on line 1 'foo' <globalVarDef name="test4" value="2"/> <-- works Reproducible: Always
Works as expected. The value of a global var definition is expected to be an expression. It will be evaluated in org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent#getGlobalVars(). If a simple string is used as global var value, it will be evaluated as an identifier. To actually pass a string, you need to surround the value with quotes: <globalVarDef name="test4" value="'foobar'"/>
Requested via bug 522520. -M.