| Summary: | BasicEList$BasicIndexOutOfBoundsException triggered via Element.destroy() | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] MDT.UML2 | Reporter: | Keith W. Campbell <keithc> | ||||||
| Component: | Core | Assignee: | Kenn Hussey <Kenn.Hussey> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | P3 | CC: | Kenn.Hussey | ||||||
| Version: | unspecified | Flags: | Kenn.Hussey:
indigo+
|
||||||
| Target Milestone: | RC1 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Keith W. Campbell
Created attachment 194030 [details]
Junit test plugin to reproduce the problem.
Here is the stack trace of the exception as triggered by the junit test. org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=1, size=1 at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:352) at org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImpl.hasNext(EContentsEList.java:484) at org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImpl.next(EContentsEList.java:565) at org.eclipse.emf.common.util.AbstractTreeIterator.next(AbstractTreeIterator.java:139) at org.eclipse.uml2.uml.internal.operations.ElementOperations.destroy(ElementOperations.java:1623) at org.eclipse.uml2.uml.internal.operations.ElementOperations.destroy(ElementOperations.java:1593) at org.eclipse.uml2.uml.internal.impl.ElementImpl.destroy(ElementImpl.java:567) at bug.example.DestroyTest.testDestroy(DestroyTest.java:94) ... Created attachment 194031 [details]
proposed patch
The proposed fix has been committed to CVS. I'll post an integration build later this week. Integration build I201105021958 is now available. Please confirm that this build resolves the issue. The fix is available in the RC1 build. Closing for Indigo release. |