Summary: | Request to add/remove source folder to index should not look at active job | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Jerome Lanneluc <jerome_lanneluc> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.1 | ||
Target Milestone: | 2.1 RC2 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Jerome Lanneluc
2003-02-21 10:41:36 EST
I believe this can cause the Java model tests to fail intermitently. Actually, the work in SetClasspathOperation is ok. The problem comes from the fact that IndexManager.removeSourceFolder(...) looks at the running job to determine if the request should be made or not. If an IndexAllProject job has already started, this check is wrong. Changed title to reflect the real problem. We should fix all cases were we look at the job queue before adding a job. We should never consider the active job (i.e. the one at jobStart) as it may have already started. Fixed IndexManager.indexAll, indexLibrary, indexSourceFolder, removeSourceFolder to not consider the job at jobStart. Verified. |