Bug 12649 - Missing import after move
Summary: Missing import after move
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 F2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 12628 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-02 16:00 EST by Randy Giffen CLA
Modified: 2002-06-03 08:52 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Giffen CLA 2002-04-02 16:00:53 EST
I moved ExportResourceAction from org.eclipse.ui.internal to 
org.eclipse.ui.action 
After the move I had to add an import for 
org.eclipse.ui.internal.IHelpContextIds
Comment 1 Adam Kiezun CLA 2002-04-04 11:53:41 EST
simpler test case
package p;
A.java

class A{
 int i= I.II;
}

I.java
interface I{
 int i= 0;
}

package q;

move A.java to q - import to p.I is missing
Comment 2 Adam Kiezun CLA 2002-04-04 12:02:22 EST
the reason is:
SearchEngine::searchDeclarationsOfReferencedTypes
does not find type p.I as referenced inside of p.A
Comment 3 Adam Kiezun CLA 2002-04-04 12:04:59 EST
*** Bug 12628 has been marked as a duplicate of this bug. ***
Comment 4 Jerome Lanneluc CLA 2002-05-29 05:38:51 EDT
Adam, 'int i= I.II;' is not a valid statement. Is this on purpose, or is it a 
typo?
Comment 5 Adam Kiezun CLA 2002-05-29 05:47:38 EDT
sorry, typo
should be
 int i= I.i;
Comment 6 Jerome Lanneluc CLA 2002-05-29 09:29:17 EDT
Reporting a qualified name reference would file if the type correspond to the 
first token.

Fixed.
Comment 7 David Audel CLA 2002-06-03 08:52:15 EDT
Verified.