[ATL] wrong transformation with attribute type java.util.Date [message #527177] |
Wed, 14 April 2010 11:16 |
Miguel Llàcer San Fernando Messages: 63 Registered: July 2009 |
Member |
|
|
I have this simple rule into a transformation for migrating the models from an old metamodel to the new metamodel version:
...
rule Approval {
from
i : oldMIP!Approval
to
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 ?¿?
|
|
|
Powered by
FUDForum. Page generated in 0.02584 seconds