Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » 'insertAt' operation..................................
'insertAt' operation.................................. [message #21420] |
Tue, 07 February 2006 06:54 |
Shrawanika 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 |
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 14: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: Thu Dec 26 19:01:31 GMT 2024
Powered by FUDForum. Page generated in 0.03164 seconds
|