Bug 29872 - ImportOrganizeTest failing due to file missing from index
Summary: ImportOrganizeTest failing due to file missing from index
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-21 05:44 EST by Jerome Lanneluc CLA
Modified: 2003-02-13 05:36 EST (History)
0 users

See Also:


Attachments
Trace of the index manager activity up until the failure (443.81 KB, text/plain)
2003-01-21 05:57 EST, Jerome Lanneluc CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.