Bug 71100 - Lost import declarations on new copied classes...
Summary: Lost import declarations on new copied classes...
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-29 13:11 EDT by alincoln CLA
Modified: 2004-10-28 12:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alincoln CLA 2004-07-29 13:11:33 EDT
Eclipse 3.0 routinly loses references to import declarations on individual 
classes.  This occurs whenever the project/source code is zipped up and moved 
to a different PC...i.e. when code is exchanged during development.  A typical 
class may have the following import declarations at the top:

<snip>
import java.io.IOException;

import com.synapsegroupinc.rwframework.iface.IDataVO;
import com.synapsegroupinc.rwframework.iface.IWriter;
</snip>

When that class and/or project gets moved to a different computer, and the 
project gets re-opened in Eclipse, one or more of those import's appears as an 
error... "... can not be resolved...".  The work-around is currently to re-
type part(s) or all of the import declaration.  In some cases, it's much 
worse, you need to actually go to the class being referenced ( IDataVO, 
IWriter ) and make an editing change, then the class can be found.

This also occurs even though the project gets moved to a directory 
tree/structure that mirrors the original directory tree/structure.

Current Profile
------------------------------------------------
Windows XP Professional
Eclipse 3.0
CDT Plugin 2.0.0
EclipseColorer 0.6.0
JDK 1.3.1-03 ( For project compilations )
JDK -vm 1.4.1-07 ( Only to run Eclipse 3.0 )

The problem also appears to occur on referenced projects as well as external 
JARs.  I have not seen it lose import declarations on any Java/JDK imports.

thx,

alincoln@edgewater.com
Comment 1 Jerome Lanneluc CLA 2004-08-30 07:39:07 EDT
We've not seen this problem. Would you have steps to reproduce it ?
Comment 2 Frederic Fusier CLA 2004-10-28 12:04:06 EDT
Consider this as WORKSFORME.
Reopen when you'll provide test case to reproduce, thanks