Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366349

Summary: CMOF file can no longer be edited, saved and loaded
Product: [Modeling] MDT.UML2 Reporter: Ed Willink <ed>
Component: CoreAssignee: Kenn Hussey <Kenn.Hussey>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 3.2.0   
Target Milestone: M5   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

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.