Convert Float to Double - by refInvokeOperation? [message #987622] |
Tue, 27 November 2012 05:56  |
Eclipse User |
|
|
|
Hi members,
I'm trying to assign a Float value from a source model object to a Double attribute of the matching target model object:
rule Real2Term {
from
source: transformate!RealTransformer
to
otxTerm: otx!FloatLiteral (
value <- source.value -> refInvokeOperation('doubleValue', Sequence{})
)
}
which produces the error org.eclipse.m2m.atl.engine.emfvm.VMException: Wrong use of refInvokeOperation .
otxTerm.value is Double, source.value is Float. There is no doubleValue helper (similar to longValue), so I'm trying to access the Java method, which fails.
Thanks for helping.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07931 seconds