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 09:28 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member

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


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] [] [if
p.isOptional()] optional[/if]

I'm using Acceleo 0.8 in Ganymede!

Re: [Acceleo] Downcasting issue again [message #486117 is a reply to message #485021] Wed, 16 September 2009 11:59 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1659
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
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

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

Current Time: Sat Oct 10 05:37:23 GMT 2015

Powered by FUDForum. Page generated in 0.01918 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software