Bug 12649

Summary: Missing import after move
Product: [Eclipse Project] JDT Reporter: Randy Giffen <Randy_Giffen>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: akiezun, john.arthorne
Version: 2.0   
Target Milestone: 2.0 F2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.