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 147879 - Rename of package didn't change wildcard imports
Summary: Rename of package didn't change wildcard imports
Status: RESOLVED DUPLICATE of bug 128830
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-22 14:12 UTC by swpalmer
Modified: 2008-09-24 14:19 UTC (History)
0 users

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 swpalmer 2008-09-22 14:12:28 UTC
Did a rename of a package on my project and it was left in an uncompilable state because:

com.company.thepackage was renamed to com.company.differentpackage

and one file still contained a line that read:

import com.company.thepackage.*;

(This happened to be in the view class for an app using the Swing Application Framework.)
Comment 1 swpalmer 2008-09-22 14:27:35 UTC
In addityion I am noticing that project.properties was not updated properly.  E.g.:
main.class=com.company.thepackge.MyMainClass
instead of 
main.class=com.company.differentpackge.MyMainClass

Classes used in the form editor were not refactored such that the form could load.  E.g. can't instantiate MyWidegt 
because com.mycompany.thepackage.MyWidget can't be found.
Comment 2 Jan Becicka 2008-09-24 14:19:58 UTC
Duplicate of issue 128830 and/or issue 128833

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