Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357391 - EObjectResolvingEList does not resolve on remove
Summary: EObjectResolvingEList does not resolve on remove
Status: RESOLVED INVALID
Alias: None
Product: EMF
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ed Merks CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-12 10:43 EDT by Boris holzer CLA
Modified: 2011-09-12 10:50 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris holzer CLA 2011-09-12 10:43:49 EDT
Build Identifier: I20110613-1736

According to the contract of java.util.List, calling remove "Returns the element that was removed from the list."
Since EObjectResolvingEListImpl accesses (via NotifyingListImpl.remove --> NotifyingListImpl.doRemove --> BasicEList.remove) the member 'data' directly, the removed Object is not resolved.

BasicEList.remove should invoke BasicEList.get instead of accessing data directly.

Reproducible: Always
Comment 1 Ed Merks CLA 2011-09-12 10:50:38 EDT
Certainly remove(int) is not intended to resolve proxies.