Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » 'insertAt' operation..................................
'insertAt' operation.................................. [message #21420] |
Tue, 07 February 2006 01:54  |
Eclipse User |
|
|
|
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 09:33  |
Eclipse User |
|
|
|
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 09:33  |
Eclipse User |
|
|
|
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
|
|
|
Goto Forum:
Current Time: Fri May 02 02:56:24 EDT 2025
Powered by FUDForum. Page generated in 0.02074 seconds
|