Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Downcasting issue again
[Acceleo] Downcasting issue again [message #485021] Thu, 10 September 2009 05:28 Go to next message
Timothy Marc is currently offline Timothy Marc
Messages: 547
Registered: July 2009
Senior Member
Hi,

i've again problems with the correct usage of downcasts. Primarily, i
tried to invoke a template with an inline downcast like this:

[mapTTCN3Type(p.type.oclAsType(PrimitiveType))/]

The parser says, that i try to invoke an illegal signature. However, by
surrounding the construct with a [let] block, it works as exepected.

[let pt:PrimitiveType =
p.type.oclAsType(PrimitiveType)][mapTTCN3Type(pt)/][/let] [p.name/] [if
p.isOptional()] optional[/if]

I'm using Acceleo 0.8 in Ganymede!

Thanks
Timothy
Re: [Acceleo] Downcasting issue again [message #486117 is a reply to message #485021] Wed, 16 September 2009 07:59 Go to previous message
Laurent Goubet is currently offline Laurent Goubet
Messages: 1621
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020505000508090101050104
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi Timothy,

Seems like a parser issue to me ... but we've resolved a great deal of
parsing problems since the 0.8 release. You should update to the latest
0.9 release. It's still an integration build, yet the 0.9 branch is way
more stable than the 0.8.

Laurent Goubet
Obeo

Timothy Marc a
Previous Topic:Invoking Expand generator from Java
Next Topic:How to exit the FOR LOOP
Goto Forum:
  


Current Time: Tue Jul 29 00:55:19 EDT 2014

Powered by FUDForum. Page generated in 0.02215 seconds