Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346880

Summary: Treat EObject as OclAny in queries
Product: [Modeling] Acceleo Reporter: Stéphane Thibaudeau <stephane.thibaudeau>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: stephane.begaudeau
Version: 3.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Stéphane Thibaudeau CLA 2011-05-23 11:40:56 EDT
I've defined a query doSomething(EObject) and I was surprised I could not call it with a "uml.Package" for example.
I know now that the query should have been defined as doSomething(OclAny) but it could be useful to treat EObject as OclAny.
Comment 1 Stephane Begaudeau CLA 2012-02-20 08:29:30 EST
Acceleo adds to OclAny most of the necessary operations from EObject (ancestors(), siblings() etc). I you need anything on OclAny, feel free to ask but the root type of all model element in Acceleo is OclAny not EObject so EObject should not be used as the type of anything in an Acceleo generator that is not defined on Ecore.
Comment 2 Laurent Goubet CLA 2015-05-27 08:57:35 EDT
Closing resolved bugs