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

Bug 338055

Summary: NatureManager.isNatureEnabled() gives invalid result when called after project import.
Product: [Eclipse Project] Platform Reporter: Malgorzata Janczarska <malgorzata.tomczyk>
Component: ResourcesAssignee: Malgorzata Janczarska <malgorzata.tomczyk>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ebaron
Version: 3.7   
Target Milestone: 3.7 M6   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 338074, 338076, 338077    
Attachments:
Description Flags
Fix
Szymon.Brandys: iplog+
Test updated none

Description Malgorzata Janczarska CLA 2011-02-24 03:53:46 EST
NatureManager.isNatureEnabled() gives invalid result when called after project import. If NatureManager.isNatureEnabled() id called too early after project import it gives false result for new natures and the value is cached, so the invalid result is from not on returned until the project is reopened.
Comment 1 Malgorzata Janczarska CLA 2011-02-24 04:02:13 EST
Created attachment 189676 [details]
Fix
Comment 2 Szymon Brandys CLA 2011-02-24 06:52:09 EST
Created attachment 189687 [details]
Test updated

I changed the test a bit. The fix looks good.
Comment 3 Szymon Brandys CLA 2011-02-24 07:13:59 EST
I released changes to HEAD. Thanks Gosia. Please open bugs for the older streams (3.4.2, 3.5.2 and 3.6.2) to backport the fix.
Comment 4 Malgorzata Janczarska CLA 2011-02-24 07:34:08 EST
3.4.2+: Bug 338074
3.5.2+: Bug 338076
3.6.2: Bug 338077
Comment 5 Szymon Ptaszkiewicz CLA 2012-04-03 07:32:35 EDT
*** Bug 273079 has been marked as a duplicate of this bug. ***