Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » ATL: Problems working with BigInteger
ATL: Problems working with BigInteger [message #87989] Mon, 11 August 2008 06:26 Go to next message
Eclipse UserFriend
Originally posted by: not.anyone.de

Hello!

I want to assign a value to my output model, but as it seems to be of
the type "Java.math.BigInteger", I always get error messages like this one:

"Caused by: java.lang.ClassCastException: The value of type 'class
java.lang.Integer' must be of type 'class java.math.BigInteger'"

There is another thread with this subject, but I've opened up a new one
anyway, because I think there might be a quicker response this way.

Original is found here:
http://dev.eclipse.org/newslists/news.eclipse.modeling.m2m/m sg02856.html

With best regards,

Manu
Re: ATL: Problems working with BigInteger [message #88009 is a reply to message #87989] Mon, 11 August 2008 08:48 Go to previous message
Eclipse UserFriend
Hello,

As said in the discussion you mention, there is at this time no way to
set those types in ATL.
We are studying the possibility to provide a core extensibility for this
issue, in order to easily allow users to define theyre own types adapters.

For the moment, you can use the old way (quite hard but possible),
referring to that use case :
http://www.eclipse.org/m2m/atl/usecases/UML2AnyLogic/
In it you will find a custom model handler which allows the use of
specific data types.

Best regards,

William

Manu a écrit :
> Hello!
>
> I want to assign a value to my output model, but as it seems to be of
> the type "Java.math.BigInteger", I always get error messages like this one:
>
> "Caused by: java.lang.ClassCastException: The value of type 'class
> java.lang.Integer' must be of type 'class java.math.BigInteger'"
>
> There is another thread with this subject, but I've opened up a new one
> anyway, because I think there might be a quicker response this way.
>
> Original is found here:
> http://dev.eclipse.org/newslists/news.eclipse.modeling.m2m/m sg02856.html
>
> With best regards,
>
> Manu
Previous Topic:[ATL]
Next Topic:[ATL] : How to deal with BigInteger Datatype
Goto Forum:
  


Current Time: Tue May 13 06:25:25 EDT 2025

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

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

Back to the top