Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369492 - StereotypeApplicationCopier : bug when handling enums in static profiles
Summary: StereotypeApplicationCopier : bug when handling enums in static profiles
Status: VERIFIED FIXED
Alias: None
Product: MDT.UML2
Classification: Modeling
Component: Core (show other bugs)
Version: 3.2.0   Edit
Hardware: PC All
: P1 normal (vote)
Target Milestone: 4.0.0   Edit
Assignee: Kenn Hussey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 365898
  Show dependency tree
 
Reported: 2012-01-24 05:45 EST by Mathieu Velten CLA
Modified: 2012-03-14 09:55 EDT (History)
1 user (show)

See Also:
Kenn.Hussey: juno+


Attachments
patch (3.15 KB, patch)
2012-01-24 05:45 EST, Mathieu Velten CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Velten CLA 2012-01-24 05:45:23 EST
Created attachment 209960 [details]
patch

Hi,

Using control mode in Papyrus we encountered an uml bug :
there is a problem with copyEEnumAttribute in the StereotypeApplicationCopier class when trying to copy a stereotype application linked to a static profile.

When a static profile is generated an enum literal is represented by a simple object which inherited Enumerator which is ok since the setters provided by EEnumLiteral are not needed here.

However the current code assumes that it inherited EEnumLiteral.

Patch attached to fix this.
Comment 1 Kenn Hussey CLA 2012-03-06 09:45:23 EST
While the attached patch may address your particular scenario but it won't work in migration scenarios (which is this code's main purpose). A correct fix has been committed and pushed to git. An integration build will be posted shortly.
Comment 2 Kenn Hussey CLA 2012-03-06 12:19:41 EST
An integration build containing this fix is now available.
Comment 3 Mathieu Velten CLA 2012-03-14 09:55:33 EDT
Thanks for your comments and push.