[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.m2m] Re: [ATL] result of undefined subSequence call on EMF virtual machine

Oh by the way, I am using the EMF virtual machine!
Running with the regular machine does not throw an error but seem to still result with error...


PS: the code was maybe not the one to look at...

--
regards,
Loïc Fejoz

Loïc Fejoz a écrit :
Hi,

I got the following error:
Operation not found: [].notEmpty()

After investigation it is due to the call of notEmpty over the result of subSequence(2, sizeOfSequence) with sizeOfSequence being strictly less than 2.

My question is: what is the kind of this object []?
I would have expected the result to be either oclUndefined or the empty sequence Sequence{}! Before calling notEmpty I checked for oclUndefiness so it must be something.


Moreover looking at the code of ASMSequence, it seems that the result is an ASMSequence anyway. So where is the bug?

<http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2m/org.eclipse.m2m.atl/plugins/org.eclipse.m2m.atl.engine.vm/src/org/eclipse/m2m/atl/engine/vm/nativelib/ASMSequence.java?revision=1.5&root=Modeling_Project&view=markup>