Bug 499373 - [fragment] polymorphism does not work with fragment
Summary: [fragment] polymorphism does not work with fragment
Status: NEW
Alias: None
Product: Gendoc
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: 0.5.1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-08 11:58 EDT by Tristan Faure CLA
Modified: 2016-08-08 12:15 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tristan Faure CLA 2016-08-08 11:58:40 EDT
This test case does not work on gendoc :

<fragment name=’test’>
<arg name=’element’ type=’ecore::EObject’ />
// do something
</fragment>

<fragment name=’test’>
<arg name=’element’ type=’uml::NamedElement’ />
// do something
</fragment>

<fragment name=’test’>
<arg name=’element’ type=’uml::UseCase’ />
// do something
</fragment>

<fragment name=’test’>
<arg name=’element’ type=’uml::Actor’ />
// do something
</fragment>

<context model=’${project_loc}/model.uml’ element=’{0}’ />
<gendoc>
[self.eAllContents().test()/]
</gendoc>

In Acceleo this works and the correct method is called according to the element type
Comment 1 Eclipse Genie CLA 2016-08-08 12:06:04 EDT
New Gerrit change created: https://git.eclipse.org/r/78624
Comment 2 Eclipse Genie CLA 2016-08-08 12:15:31 EDT
New Gerrit change created: https://git.eclipse.org/r/78625