Bug 29872

Summary: ImportOrganizeTest failing due to file missing from index
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
Trace of the index manager activity up until the failure none

Description Jerome Lanneluc CLA 2003-01-21 05:44:46 EST
Build 20030115 + latest jdtcore

The JDT/UI test ImportOrganizeTest is failing because the 
file /TestProject1/src/pack/List.java is not in the index.

To reproduce, you need to load the jdtui tests, and edit 
ImportOrganizeTest.suite() to change the if condition to true.
Comment 1 Jerome Lanneluc CLA 2003-01-21 05:57:19 EST
Created attachment 3061 [details]
Trace of the index manager activity up until the failure
Comment 2 Jerome Lanneluc CLA 2003-01-21 10:03:11 EST
When removing a source folder, we used to expand the removal using a separate 
job. If the addition of the same source folder occured before this job ran, 
then the expansion of the source folder addition was done right away and files 
were removed from the index after the same files were added.

Changed IndexManager.removeSourceFolder to do the expansion right away. This is 
now symetrical to IndexManager.indexSourceFolder.
Comment 3 David Audel CLA 2003-02-13 05:36:21 EST
Verified.