[Acceleo] Use of template result in Sequence of String [message #545350] |
Wed, 07 July 2010 09:47  |
Eclipse User |
|
|
|
Hello,
I would like to use template results into a sequence of String. The compilation is Ok but I have an exception at runtime :
...
[generateList(Sequence{aBlock('a'), aBlock('b')})/]
...
[template aBlock(str : String)]
value : [str/]
[/template]
...
[template public generateList(args : Sequence(String))]
[for (it : String | args) before ('(') separator (', ') after (')')]
[it/]
[/for]
[/template]
The exception is :
org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid type for iteration at line 0 in Module jpaAnnotations for block for (args) before('(') separator(', ') after(')'). org.eclipse.uml2.uml.internal.impl.PropertyImpl was not an instanceof String.
Is it a bug ?
Is there a workaround to make this kind of code working ?
Regards
Sebastien
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09818 seconds