Bug 79696 - [dom] Wrong type binding in qualified name
Summary: [dom] Wrong type binding in qualified name
Status: RESOLVED DUPLICATE of bug 78934
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-29 13:44 EST by Dave Latham CLA
Modified: 2005-02-02 11:35 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 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 ***