Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365027 - UnsupportedOperation setting forward reference
Summary: UnsupportedOperation setting forward reference
Status: VERIFIED FIXED
Alias: None
Product: MDT.UML2
Classification: Modeling
Component: Core (show other bugs)
Version: 4.0.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: M4   Edit
Assignee: Kenn Hussey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-29 03:42 EST by Ed Willink CLA
Modified: 2011-12-05 11:19 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-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.