Bug 33632

Summary: Types not found by code resolve and temporary errors but compiles ok
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED DUPLICATE QA Contact:
Severity: critical    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Martin Aeschlimann CLA 2003-03-02 17:15:59 EST
20030227

After replacing a plugin, some types from this plugin are reported to be
missing. But only by the reconciler (as temporary problems) and by code resolve.
'Open type' shows the types and also the compiler compiles fine.


1. Create a new workspace, do a plugin import (no sources) of jdt.ui and all its
required plugins.
2. add a source folder to jdt,ui and add file A.java
import org.eclipse.jface.text.IRewriteTarget;
public class A {
	IRewriteTarget target;
}
Note: IRewriteTarget can be reolved, no errors from the reconciler
Keep the file open.
3. Run eclipse out of eclipse. In the test instance, create a Java project and
add a Java file (make sure that jface.text is loaded)
4. While test eclipse still runs, go back to the development workspace and
connect to dev.eclipse.org and get project org.eclipse.jface.text
When prompted, say 'Yes' to replace the existing project.

-> The operation fails because jfacetext.jar is still in use.

5. close the test instace of eclipse
6. delete the project 'org.eclipse.jface.text' including contents. Now this works
7. again get 'org.eclipse.jface.text' from dev.eclipse.org
No compile errors. But in A.java, IRewriteTarget is marked as unresolved
Code resolve on A fails.
Close/Open does not help.
Create B.java that also references IRewriteTarget. Error as well.
Comment 1 David Audel CLA 2003-03-03 10:05:12 EST

*** This bug has been marked as a duplicate of 33560 ***