Project: JDT
Bug 226702 [quick fix] nonexistent type import proposed for unresolved type
Reported: 2008-04-11 11:00:35 | Status: resolved fixed

Build ID: I20080330-1350 I have no idea how to reproduce it. It happends only "recentely" (3.4M5/6). Sometimes, on an Unresolved type name (simplename), the tooltip with quick fix appears when i put the mouse cursor on the type name, and one "nonexistent" type appears. If the java editor is containing class "a.b.c.A", and the unresolved typename is "MyClass", the wrong quick fix would be 'Import a.b.c.MyClass', while the class doesn't exist.

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/proposals/NewCUUsingWizardProposal.java