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 - "Change to import" offers wrong class name
Summary: "Change to import" offers wrong class name
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 217073 228172 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-07 23:35 UTC by pekarna
Modified: 2013-08-14 14:41 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.