Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363439 - filter(MyType) and oclIsKindOf(MyType) not working with dynamic instance
Summary: filter(MyType) and oclIsKindOf(MyType) not working with dynamic instance
Status: CLOSED WORKSFORME
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 critical
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-10 04:27 EST by Cedric Brun CLA
Modified: 2015-05-27 08:57 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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