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

Bug 365027

Summary: UnsupportedOperation setting forward reference
Product: [Modeling] MDT.UML2 Reporter: Ed Willink <ed>
Component: CoreAssignee: Kenn Hussey <Kenn.Hussey>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 4.0.0   
Target Milestone: M4   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Ed Willink CLA 2011-11-29 03:42:14 EST
(Effectively reopening Bug 359971)

When opening UML.xmi from the current UML 2.5 draft models which use UML 2.2, I get 

UnionEObjectEList<E>(BasicEList$UnmodifiableEList<E>).move(int, int) line: 1015	
XMI2UMLHelperImpl(XMLHelperImpl).setValue(EObject, EStructuralFeature, Object, int) line: 1198	
XMI222UMLHandler(XMLHandler).setFeatureValue(EObject, EStructuralFeature, Object, int) line: 2658	
XMI222UMLHandler(XMLHandler).handleForwardReferences(boolean) line: 1149	
XMI222UMLHandler(XMLHandler).endDocument() line: 1228	

again when the forward reference to an InstanceSpecification.classifier is resolved to an Enumeration.

This problem is only apparent in the UML Model Editor if running under the debugger to detect UnsupportedOperationExceptions that provoke IllegalValueExceptions that are in nested resources whose diagnostics are ignored by the editor, but not by my standalone application code.

Since the problem is essentially a request to move item 0 from position 0 to position 0 in an immutable list, a no-change guard could fix the problem.
Comment 1 Kenn Hussey CLA 2011-12-01 22:09:28 EST
The fix has been committed and pushed to git and will be available in a build early next week (e.g., Monday).
Comment 2 Ed Willink CLA 2011-12-02 09:16:45 EST
Thanks. Very helpful. Suddenly I'm moving forwards again.
Comment 3 Kenn Hussey CLA 2011-12-05 11:19:14 EST
This is now available in an integration build.