Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315109

Summary: Context function set in ancestor cannot be overridden by regular set in parent
Product: z_Archived Reporter: Remy Suen <remy.suen>
Component: E4Assignee: Project Inbox <e4.runtime-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ob1.eclipse
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 295007    
Attachments:
Description Flags
Tests patch to reproduce the problem
none
Patch none

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!