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

Bug 510258

Summary: Trying to delete a connection that is connected to the same part in both ends makes deletion impossible
Product: [Tools] GEF Reporter: Victor Johnsson <victor.johnsson>
Component: GEF MVCAssignee: gef-inbox <gef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: matthias.wienand, victor.johnsson
Version: unspecified   
Target Milestone: 5.0.0 (Oxygen) RC1   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
How to replicate the bug none

Description Victor Johnsson CLA 2017-01-11 07:13:45 EST
Created attachment 266235 [details]
How to replicate the bug

The attached gif shows the replication steps, a left mouse click is marked with a red circle.

The replication steps are:
 1. Make a connection have the same part as start and end anchor
 2. Delete that part

Result: The part is not deleted and nothing else can be deleted either.

Tested with the GEF integration release 5.0.0.201612310303.
Comment 1 Matthias Wienand CLA 2017-05-23 08:59:19 EDT
During deletion, a ConcurrentModificationException was thrown while detaching from anchorages. In order to prevent the CME, I added copying the iterated lists. The code is published on the master branch, therefore, I resolve this ticket as fixed for 5.0.0 RC1.