Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Operation with Set(Real) as arguments is not recognized, Is this a bug?
Operation with Set(Real) as arguments is not recognized, Is this a bug? [message #1017827] Tue, 12 March 2013 15:58 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Hi,

I am creating and validating Ecore(Pivot) at run time, when i try to have an operation with Set(Real) as argument then it is not recognized. But if argument is removed from definition and used without arguments it is recognized and validated. I have tried to open generated Ecore in OCLinEcore Editor and i get the same errors as i get during runtime validation.

I have attached Ecore file. Please open it with OCLinEcore editor and you will operation testOpt is not recognized, but if i open same ecore file in Sample Ecore Editor and try to validate then it is validated with out errors.

Do you have any idea what is problematic here?
  • Attachment: test.ecore
    (Size: 2.78KB, Downloaded 221 times)
Re: Operation with Set(Real) as arguments is not recognized, Is this a bug? [message #1017845 is a reply to message #1017827] Tue, 12 March 2013 16:16 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
HI

Thanks. https://bugs.eclipse.org/bugs/show_bug.cgi?id=403070 raised.

Looks easy to fix; just need to try harder to pin down all the places
where concrete types such as EDouble need converting to behavioural
types such as Real.

The Sample Ecore Editor does not validate the OCL so you wouldn't see
the problem there.

Regards

Ed Willink


On 12/03/2013 15:58, ModelGeek Mising name wrote:
> Hi,
>
> I am creating and validating Ecore(Pivot) at run time, when i try to have an operation with Set(Real) as argument then it is not recognized. But if argument is removed from definition and used without arguments it is recognized and validated. I have tried to open generated Ecore in OCLinEcore Editor and i get the same errors as i get during runtime validation.
>
> I have attached Ecore file. Please open it with OCLinEcore editor and you will operation testOpt is not recognized, but if i open same ecore file in Sample Ecore Editor and try to validate then it is validated with out errors.
>
> Do you have any idea what is problematic here?
Re: Operation with Set(Real) as arguments is not recognized, Is this a bug? [message #1017871 is a reply to message #1017845] Tue, 12 March 2013 17:04 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Indeed, very easy to fix. Building now, should be available in an
N-build tomorrow.

Regards

Ed Willink

On 12/03/2013 16:16, Ed Willink wrote:
> HI
>
> Thanks. https://bugs.eclipse.org/bugs/show_bug.cgi?id=403070 raised.
>
> Looks easy to fix; just need to try harder to pin down all the places
> where concrete types such as EDouble need converting to behavioural
> types such as Real.
>
> The Sample Ecore Editor does not validate the OCL so you wouldn't see
> the problem there.
>
> Regards
>
> Ed Willink
>
>
> On 12/03/2013 15:58, ModelGeek Mising name wrote:
>> Hi,
>>
>> I am creating and validating Ecore(Pivot) at run time, when i try to
>> have an operation with Set(Real) as argument then it is not
>> recognized. But if argument is removed from definition and used
>> without arguments it is recognized and validated. I have tried to
>> open generated Ecore in OCLinEcore Editor and i get the same errors
>> as i get during runtime validation.
>>
>> I have attached Ecore file. Please open it with OCLinEcore editor and
>> you will operation testOpt is not recognized, but if i open same
>> ecore file in Sample Ecore Editor and try to validate then it is
>> validated with out errors.
>>
>> Do you have any idea what is problematic here?
>
Re: Operation with Set(Real) as arguments is not recognized, Is this a bug? [message #1018211 is a reply to message #1017871] Wed, 13 March 2013 12:11 Go to previous message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
thanks!
Previous Topic:import platform-resource to completeoclfile
Next Topic:asOrderedSet() flattening too much?
Goto Forum:
  


Current Time: Sat Apr 20 02:09:56 GMT 2024

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

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

Back to the top