Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Use of refInvokeOperation
Use of refInvokeOperation [message #1809896] Thu, 25 July 2019 11:27 Go to next message
Marshall Charron is currently offline Marshall CharronFriend
Messages: 72
Registered: August 2018
Member
I am trying to use refInvokeOperation on this :


value <- s.all->refGetValue('values').refInvokeOperation('first', Sequence{})



I first refGetValue('values') to get the values and this operation works, so I can get the list. But now when I try to invoke first on the retrieved values I get this error :

org.eclipse.m2m.atl.emftvm.util.VMException: java.lang.UnsupportedOperationException: #native!org.eclipse.emf.ecore.util.EObjectResolvingEList::first()


What's could be wrong with my code ?
Re: Use of refInvokeOperation [message #1809983 is a reply to message #1809896] Sat, 27 July 2019 09:43 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

I think you've come across a bug, which you may report (using the text above) at https://bugs.eclipse.org/bugs/enter_bug.cgi?product=MMT.ATL

That said, on EMFTVM your code usually doesn't need reflective API (except for invoking Java static methods). This code should work just fine:
value <- s.all.values->first()


Cheers,
Dennis
Previous Topic:resolvetemp and Sequence
Next Topic:What is 'var' in resolveTemp(var, target_pattern_name) ?
Goto Forum:
  


Current Time: Fri Apr 26 11:16:04 GMT 2024

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

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

Back to the top