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 165601 - incorrect 'import' refactor
Summary: incorrect 'import' refactor
Status: RESOLVED DUPLICATE of bug 128830
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-20 13:46 UTC by matusdekanek
Modified: 2009-05-25 21:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (121.71 KB, image/png)
2009-05-20 13:50 UTC, matusdekanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matusdekanek 2009-05-20 13:46:11 UTC
Product Version: NetBeans IDE Dev (Build 200905190001)
Java: 1.6.0_14-ea; Java HotSpot(TM) Client VM 14.0-b12
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)

It seems as if some names of packages correctly refactored. For example this line was not affected by change the source 
packages from org.* to com.* :
import org.netbeans.tests.examples.packb.*;
Reproduction:
load the 'default' project (http://wiki.netbeans.org/attach/TS_60_Refactoring/default.zip)
extract it and open in the ide
go to files view
refactor|rename the folder "default/src/org" to :"default/src/com"
Or you may as well try to rename few times some class/interface (org.netbeans.tests.examples.packc.Makable), that 
causes problems with 'import' lines as well.
If it is not reproducible, try to add some more classes with some imports.
Comment 1 matusdekanek 2009-05-20 13:50:53 UTC
Created attachment 82481 [details]
screenshot
Comment 2 matusdekanek 2009-05-20 13:52:34 UTC
Hm I should read what I have written more carefully... I meant
It seems as if some names of packages are not correctly refactored.
Comment 3 Max Sauer 2009-05-20 15:53:47 UTC
Affects only unused star imports. Definitely will not be fixed in 6.7, there is no support in infrastructure (not indexed). It is also probably already filed 
somewhere, eventough I'm not able to find the issue. Present since 6.0 (introduction of retouche).
Comment 4 Jiri Prox 2009-05-20 16:02:00 UTC
Maxi, you're probably searching for issue 128830

*** This issue has been marked as a duplicate of 128830 ***