This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 200742

Summary: "Change to import" offers wrong class name
Product: java Reporter: pekarna <pekarna>
Component: HintsAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: normal CC: gnomed, i30817, williambacchi
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description pekarna 2011-08-07 23:35:26 UTC
STR:

1) Have an import:
import cz.foo.ClassXY

2) Have an actual class "cz.foo.bar.ClassXY"

3) On Alt+Enter, NetBeans will suggest to change import to a wrong class name:
   Change import to "cz.foo.bar.ClassXY.cz.foo.ClassXY".
   Apply it.

4) Import changes to:
 
import cz.foo.bar.ClassXY.cz.foo.ClassXY;
Comment 1 Jan Lahoda 2012-08-20 12:13:45 UTC
*** Bug 217073 has been marked as a duplicate of this bug. ***
Comment 2 Jan Lahoda 2013-04-03 17:38:36 UTC
*** Bug 228172 has been marked as a duplicate of this bug. ***
Comment 3 Jan Lahoda 2013-08-12 16:00:12 UTC
Fixed:
http://hg.netbeans.org/jet-main/rev/081b6a4fe0e3
Comment 4 Quality Engineering 2013-08-14 14:41:26 UTC
Integrated into 'main-silver', will be available in build *201308141142* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/081b6a4fe0e3
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #200742: fixing change import fix to work properly.