Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] wrong transformation with attribute type java.util.Date
[ATL] wrong transformation with attribute type java.util.Date [message #527177] Wed, 14 April 2010 11:16
Miguel Llàcer San Fernando is currently offline Miguel Llàcer San FernandoFriend
Messages: 63
Registered: July 2009
I have this simple rule into a transformation for migrating the models from an old metamodel to the new metamodel version:

rule Approval {
i : oldMIP!Approval
o : newMIP!Approval (
approvalDate <- i.approvalDate

The EType of this approvalDate attribute is java.util.Date and when I execute the transformation it throws an exception:

at A.__applyApproval(1 : NTransientLink;) : ??(MIP10_MIP13.atl[100:19-100:32])
local variables = {o=OUT!<unnamed>, i=IN!<unnamed>, link=TransientLink {rule = 'Approval', sourceElements = {i = IN!<unnamed>}, targetElements = {o = OUT!<unnamed>}, variables = {}}, self=MIP10_MIP13 : ASMModule}
local stack = [OUT!<unnamed>, OUT!<unnamed>, MIP10_MIP13 : ASMModule]

If I comment this line (approval <- i.approvalDate) it works fine.

I suppose it is because java.util.Date it is not an ATL supported type or something like this and it doesn't know how to do this assignment but what can I do ?¿?
Previous Topic:[ATL][AML] List of heuristics
Next Topic:[ATL]
Goto Forum:

Current Time: Sun Sep 27 16:58:27 GMT 2020

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

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

Back to the top