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 168923 - [Move] refactoring a package doesn't update star imports [68cat]
Summary: [Move] refactoring a package doesn't update star imports [68cat]
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on: 131944
Blocks:
  Show dependency tree
 
Reported: 2009-07-21 18:09 UTC by matthies
Modified: 2011-10-25 14:31 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 matthies 2009-07-21 18:09:06 UTC
When move-refactoring a package by dragging the package folder to a different location in the Files view, star imports 
(like "import the.pkg.to.be.moved.*;") are not updated, causing compiler errors after the move.
Comment 1 Jiri Prox 2009-07-22 12:31:39 UTC
Looks like issue 128830. Are the star import unused (e.g. no error will be shown after they are deleted)?
Comment 2 matthies 2009-07-22 15:35:22 UTC
The star imports are used before the move, but the refactoring introduces non-star imports for those uses, so after the 
move the star import is not used any more and could be removed. But of course the refactoring shouldn't be replacing 
star imports by non-star imports on its own volition.
Comment 3 Jan Becicka 2011-07-25 13:51:01 UTC
Ralph, please take evaluate. Thanks.
Comment 4 Ralph Ruijs 2011-10-24 14:34:32 UTC
Changeset: f2823978830d
Author:    Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Date:      2011-10-24 16:25
Message:   Issue #168923 - [Move] refactoring a package doesn't update star imports [68cat]
Comment 5 Quality Engineering 2011-10-25 14:31:51 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/f2823978830d
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: Issue #168923 - [Move] refactoring a package doesn't update star imports [68cat]