Bug 33632 - Types not found by code resolve and temporary errors but compiles ok
Summary: Types not found by code resolve and temporary errors but compiles ok
Status: RESOLVED DUPLICATE of bug 33560
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: 2.1 RC2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-02 17:15 EST by Martin Aeschlimann CLA
Modified: 2003-03-06 03:26 EST (History)
0 users

See Also:


Attachments

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