Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 224129 - [DataBinding] Observable collection iterators should throw ConcurrentModification if updateWrapped(List|Set|Map) is called
Summary: [DataBinding] Observable collection iterators should throw ConcurrentModifica...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-26 11:56 EDT by Matthew Hall CLA
Modified: 2021-09-17 10:42 EDT (History)
2 users (show)

See Also:


Attachments
Initial patch -- needs unit tests (12.28 KB, patch)
2008-03-26 13:35 EDT, Matthew Hall CLA
no flags Details | Diff
mylyn/context/zip (5.33 KB, application/octet-stream)
2008-03-26 13:35 EDT, Matthew Hall CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Hall CLA 2008-03-26 11:56:37 EDT
ObservableSet, ObservableList, and ObservableMap all have iterator implementations, as well as updateWrapped(Set|List|Map) methods.  If updateWrappedSet is called in the middle of an iteration over the ObservableSet, then the iterator will continue to iterate across the old wrapped set.  So each iterator's methods should check that the wrapped set|list|map is the same instance as when the iterator was created, and throw ConcurrentModificationException if not.
Comment 1 Matthew Hall CLA 2008-03-26 13:35:25 EDT
Created attachment 93639 [details]
Initial patch -- needs unit tests
Comment 2 Matthew Hall CLA 2008-03-26 13:35:27 EDT
Created attachment 93640 [details]
mylyn/context/zip
Comment 3 Matthew Hall CLA 2009-04-27 12:44:55 EDT
Too late for 3.5, deferring to 3.6
Comment 4 Paul Webster CLA 2010-06-09 08:17:19 EDT
Removed from 3.6.  Owners can re-assess.

PW
Comment 5 Eclipse Webmaster CLA 2019-09-06 15:36:27 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 6 Eclipse Genie CLA 2021-09-17 10:42:43 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.