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

Bug 363439

Summary: filter(MyType) and oclIsKindOf(MyType) not working with dynamic instance
Product: [Modeling] Acceleo Reporter: Cedric Brun <cedric.brun>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: critical    
Priority: P3 CC: stephane.begaudeau
Version: 3.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Cedric Brun CLA 2011-11-10 04:27:31 EST
I built an Ecore file and it's associated dynamic instance.

Template dispatching works ok amont my types, but when I try to filter instance based on their type in any OCL expression no instance is returned.

Things like : 

ancestors(MyType) will always return an empty collection

wherease

ancestors.id()

will call the template :

[template public id(t: Task)]
Comment 1 Stephane Begaudeau CLA 2012-02-22 09:11:55 EST
It must have been fixed somewhere between the moment you raised your issue and now because it works for me. Feel free to re-open this issue if this problem occurs once again.
Comment 2 Laurent Goubet CLA 2015-05-27 08:57:14 EDT
Closing resolved bugs