Skip to main content



      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 11:58 Go to next message
Eclipse UserFriend
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 248 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 12:16 Go to previous messageGo to next message
Eclipse UserFriend
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 13:04 Go to previous messageGo to next message
Eclipse UserFriend
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 08:11 Go to previous message
Eclipse UserFriend
thanks!
Previous Topic:import platform-resource to completeoclfile
Next Topic:asOrderedSet() flattening too much?
Goto Forum:
  


Current Time: Sun Jul 20 17:29:48 EDT 2025

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

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

Back to the top