Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315109 - Context function set in ancestor cannot be overridden by regular set in parent
Summary: Context function set in ancestor cannot be overridden by regular set in parent
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: E4 (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 295007
  Show dependency tree
 
Reported: 2010-05-31 12:12 EDT by Remy Suen CLA
Modified: 2012-12-13 15:00 EST (History)
1 user (show)

See Also:


Attachments
Tests patch to reproduce the problem (4.60 KB, patch)
2010-05-31 12:14 EDT, Remy Suen CLA
no flags Details | Diff
Patch (10.15 KB, patch)
2010-06-02 11:23 EDT, Oleg Besedin CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Suen CLA 2010-05-31 12:12:20 EDT
If a context function is set on an ancestor and then a specific value is set on the parent, the child at the bottom does not get reinjected, it appears to ignore the parent's set.
Comment 1 Remy Suen CLA 2010-05-31 12:14:16 EDT
Created attachment 170552 [details]
Tests patch to reproduce the problem
Comment 2 Oleg Besedin CLA 2010-06-02 11:23:33 EDT
Created attachment 170820 [details]
Patch

This turned out to be a rather nasty problem: we weren't creating dependencies from the cached context functions to their names in context(s).

As a result, for instance, setting a different ICF was not propagated to cached version, or overriding ICF on child nodes.
Comment 3 Oleg Besedin CLA 2010-06-02 11:25:26 EDT
Patch applied to CVS Head.

Remy, thank you for providing a simple test case!