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

Bug 343019

Summary: [region] starting from persistent digraph is not working
Product: [Eclipse Project] Equinox Reporter: Thomas Watson <tjwatson>
Component: ComponentsAssignee: Thomas Watson <tjwatson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: glyn.normington
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
fix + testcase none

Description Thomas Watson CLA 2011-04-15 16:26:53 EDT
I wrote a testcase for starting the region bundle from a persistent digraph and found it to not work.  The issue is the digraph is not properly associated with the BundleContext of the region bundle so it remains disconnected from the framework.
Comment 1 Thomas Watson CLA 2011-04-15 16:30:04 EDT
Created attachment 193407 [details]
fix + testcase

The fix is rather simple, need to make sure to pass the BundleContext and the ThreadLocal to the constructor of the StandardRegionDigraph when loading it from persistent storage.

The fix for the testcases is a bit more complex since stopping the region bundle during the tests invalidates the BundleContext we are using to perform the tests!  This patch addresses that also in the tests.
Comment 2 Thomas Watson CLA 2011-04-15 16:32:02 EDT
Patch released.