Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366349 - CMOF file can no longer be edited, saved and loaded
Summary: CMOF file can no longer be edited, saved and loaded
Status: VERIFIED FIXED
Alias: None
Product: MDT.UML2
Classification: Modeling
Component: Core (show other bugs)
Version: 3.2.0   Edit
Hardware: PC Windows Vista
: P3 major (vote)
Target Milestone: M5   Edit
Assignee: Kenn Hussey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-11 23:12 EST by Ed Willink CLA
Modified: 2012-01-16 13:11 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2011-12-11 23:12:31 EST
Editing /org.eclipse.ocl.examples.pivot/model/Pivot.cmof (e.g rename the Operation opaqueConstant1 to opagqueConstraint2) saving and reloading gives

java.lang.IllegalArgumentException: org.eclipse.uml2.uml.internal.impl.StereotypeImpl@13f5245 (name: EPackage, visibility: <unset>) (isLeaf: false, isAbstract: false, isFinalSpecialization: false) (isActive: false)
	at org.eclipse.uml2.uml.internal.operations.ElementOperations.applyStereotype(ElementOperations.java:1413)
	at org.eclipse.uml2.uml.internal.impl.ElementImpl.applyStereotype(ElementImpl.java:511)
	at org.eclipse.uml2.uml.util.UMLUtil.safeApplyStereotype(UMLUtil.java:9236)

This makes it very difficult to make any meta-model progress with MDT/OCL.
Comment 1 Kenn Hussey CLA 2011-12-23 16:58:03 EST
A fix has been committed and pushed to git. It will be available in an integration build early in the New Year.
Comment 2 Kenn Hussey CLA 2012-01-16 13:11:18 EST
An integration build containing the fix is now available.