qasta / gwt-diagrams

Automatically exported from code.google.com/p/gwt-diagrams
0 stars 0 forks source link

Delete a connector which have multiples connections #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create 3 connectors
2. Connect all to all
3. Remove a connector and all its connections

What is the expected output? What do you see instead?
Expected to remove the connector and connections from the panel.
Instead: concurrent modification exception

What version of the product are you using? On what operating system?
gwt-diagrams-0.1 on Windows XP Pro

Please provide any additional information below.

Original issue reported on code.google.com by flo.87....@gmail.com on 14 Aug 2008 at 1:49

GoogleCodeExporter commented 9 years ago
Here is the code for deletion (c.getConnections() contains 2 connections)
    Iterator it = c.getConnections().iterator();
    while (it.hasNext()) {
        Connection connection = (Connection)it.next();
        connection.remove();
    }

Original comment by flo.87....@gmail.com on 14 Aug 2008 at 1:52