Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » 'insertAt' operation..................................
'insertAt' operation.................................. [message #21420] Tue, 07 February 2006 06:54 Go to next message
Shrawanika is currently offline ShrawanikaFriend
Messages: 12
Registered: July 2009
Junior Member
Hi,

Isn't it a valid Ocl expression? -

OrderedSet{5,15,20}->insertAt(2,10)

Evaluating this expression, I am getting this error:

org.eclipse.emf.ocl.helper.OclParsingException[1]:
illegal operation signature:
(OrderedSet(Integer).insertAt(Integer, Integer))

In the source code, it is specified like 'OrderedSet,
Sequence::insertAt(Integer, T)' but it should work well with Integers also.

-Shrawanika
Re: 'insertAt' operation.................................. [message #21439 is a reply to message #21420] Tue, 07 February 2006 14:33 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Shrawanika,

That looks like a bug. It appears that the first type of the first
parameter (the Integer index) is not being converted to the OCL's internal
Integer type, or something. We'll have to look into that and the other
index-oriented operations.

I have raised https://bugs.eclipse.org/bugs/show_bug.cgi?id=126722.

Thanks,

Christian


Shrawanika wrote:

> Hi,
>
> Isn't it a valid Ocl expression? -
>
> OrderedSet{5,15,20}->insertAt(2,10)
>
> Evaluating this expression, I am getting this error:
>
> org.eclipse.emf.ocl.helper.OclParsingException[1]:
> illegal operation signature:
> (OrderedSet(Integer).insertAt(Integer, Integer))
>
> In the source code, it is specified like 'OrderedSet,
> Sequence::insertAt(Integer, T)' but it should work well with Integers
> also.
>
> -Shrawanika
Re: 'insertAt' operation.................................. [message #566076 is a reply to message #21420] Tue, 07 February 2006 14:33 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Shrawanika,

That looks like a bug. It appears that the first type of the first
parameter (the Integer index) is not being converted to the OCL's internal
Integer type, or something. We'll have to look into that and the other
index-oriented operations.

I have raised https://bugs.eclipse.org/bugs/show_bug.cgi?id=126722

Thanks,

Christian


Shrawanika wrote:

> Hi,
>
> Isn't it a valid Ocl expression? -
>
> OrderedSet{5,15,20}->insertAt(2,10)
>
> Evaluating this expression, I am getting this error:
>
> org.eclipse.emf.ocl.helper.OclParsingException[1]:
> illegal operation signature:
> (OrderedSet(Integer).insertAt(Integer, Integer))
>
> In the source code, it is specified like 'OrderedSet,
> Sequence::insertAt(Integer, T)' but it should work well with Integers
> also.
>
> -Shrawanika
Previous Topic:'insertAt' operation..................................
Next Topic:EDataType and '<' operation in OCL expression
Goto Forum:
  


Current Time: Tue Apr 16 07:49:02 GMT 2024

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

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

Back to the top