Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340257 - Missing update of packages collection in DefaultOppositeEndFinder
Summary: Missing update of packages collection in DefaultOppositeEndFinder
Status: CLOSED FIXED
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: 3.1.0   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: OCL Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-16 18:47 EDT by Axel Uhl CLA
Modified: 2011-05-27 03:13 EDT (History)
1 user (show)

See Also:


Attachments
Patch adding cached package to the packages collection (866 bytes, application/octet-stream)
2011-03-16 18:47 EDT, Axel Uhl CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Uhl CLA 2011-03-16 18:47:09 EDT
Created attachment 191365 [details]
Patch adding cached package to the packages collection

This must have slipped our attention in prior reviews. Redundant cache updates are tried because the packages collection isn't updated when a package is being cached. Patch attached.
Comment 1 Ed Willink CLA 2011-03-17 11:50:57 EDT
+1

You can save an access by using the add() status return.
Comment 2 Axel Uhl CLA 2011-03-17 12:18:22 EDT
As Ed suggested, replaced combination of contains+add by only add, checking result
Comment 3 Ed Willink CLA 2011-05-27 03:13:33 EDT
Closing