| Summary: | ClassCastException when applying Profile | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] MDT.UML2 | Reporter: | Nicolas Bros <nicolas.bros> | ||||||||
| Component: | Core | Assignee: | UML2 Inbox <mdt-uml2-inbox> | ||||||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P2 | CC: | gdupe, Kenn.Hussey | ||||||||
| Version: | 3.0.0 | Flags: | Kenn.Hussey:
juno+
|
||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows 7 | ||||||||||
| Whiteboard: | |||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 313880 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Nicolas Bros
Created attachment 174484 [details]
my profile
Created attachment 174485 [details]
the model I try to apply the profile on
How was the model you are trying to apply the profile to produced? Its reference to the definition of the standard profile looks suspicious:
<profileApplication xmi:id="_09M-culsEd6OiOZfp0VQ5g">
<eAnnotations xmi:id="_09M-c-lsEd6OiOZfp0VQ5g" source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/schemas/Standard/1#/"/>
</eAnnotations>
<appliedProfile href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
</profileApplication>
I would have expected the reference here (#/) not to be to the root element of the resource (i.e., the profile), but instead to the Ecore package defined within it (_yzU58YinEdqtvbnfB2L_5w).
This works for me using the latest UML2 4.0 build. |