Bug 79696

Summary: [dom] Wrong type binding in qualified name
Product: [Eclipse Project] JDT Reporter: Dave Latham <eclipse.org>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Dave Latham CLA 2004-11-29 13:44:32 EST
EclipseN20041129

I have the following two classes, in separate files, both in the package "demo"

public class Source {
	public static interface TestInterface<T>{}
}

public class StaticImportTest {
	public void main(String[] args) {
		Source.TestInterface<String> c;
	}
}

When I give the command Organize Imports for the StaticImportTest file, it adds
the import "import demo.Source.*;" which it then warns me is an unused import.
Comment 1 Martin Aeschlimann CLA 2005-01-03 13:29:40 EST
Moving to jdt.core

Bug is in the qualified name 'Source.TestInterface': the type binding on simple
name 'Source' has the type binding of inner type 'TestInterface'. Should be
'Source'.
Comment 2 Olivier Thomann CLA 2005-02-02 11:35:09 EST
Regression test added in ASTConverter15Test.test0137.

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