Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » the Set::-(Set) operation generates a Java exception(t)
the Set::-(Set) operation generates a Java exception [message #1838005] Fri, 12 February 2021 18:05 Go to next message
Yves BERNARD is currently offline Yves BERNARDFriend
Messages: 146
Registered: July 2014
Senior Member
Hello,

It looks like despite the ATL documentation the "-" OCL operator on Sets is not supported:
When I use it the code compiles but I get the following exception at run time:

org.eclipse.m2m.atl.emftvm.util.VMException: java.lang.UnsupportedOperationException: Set::-(Set)

Note that I get it even with this dummy code: Set{} - (Set{})

Is it a known issue?




Yves
Re: the Set::-(Set) operation generates a Java exception [message #1838034 is a reply to message #1838005] Sun, 14 February 2021 07:32 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 581
Registered: September 2012
Location: Belgium
Senior Member

Hi Yves,

I didn't know about this issue yet: you may report a bug against EMFTVM about missing collection operations. For now, you can use the excludingAll operation to achieve the '-' semantics.


Cheers,
Dennis
Re: the Set::-(Set) operation generates a Java exception [message #1838041 is a reply to message #1838034] Sun, 14 February 2021 12:29 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 581
Registered: September 2012
Location: Belgium
Senior Member

Apparently, excludingAll is not part of OCL 2.2: I've updated https://wiki.eclipse.org/ATL/EMFTVM#Additional_API to include the operations not part of OCL 2.2.

Cheers,
Dennis
Re: the Set::-(Set) operation generates a Java exception [message #1838045 is a reply to message #1838041] Sun, 14 February 2021 17:07 Go to previous messageGo to next message
Yves BERNARD is currently offline Yves BERNARDFriend
Messages: 146
Registered: July 2014
Senior Member
Hello Denis,

ExcludingAll would perfectly do the job, indeed. Thank you so much!
:-)


Yves
Re: the Set::-(Set) operation generates a Java exception [message #1838047 is a reply to message #1838045] Sun, 14 February 2021 17:17 Go to previous message
Yves BERNARD is currently offline Yves BERNARDFriend
Messages: 146
Registered: July 2014
Senior Member
Bug reported: registration number is 571192

Yves
Previous Topic:Java API information
Next Topic:ATL 4.3.0 release
Goto Forum:
  


Current Time: Sat Nov 11 08:17:39 GMT 2023

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

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

Back to the top