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 44742 - Rename package doesn't rename the package command
Summary: Rename package doesn't rename the package command
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2004-06-11 09:28 UTC by Jaromir Uhrik
Modified: 2007-04-03 18:02 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 Jaromir Uhrik 2004-06-11 09:28:00 UTC
[#200406101800; j2sdk1.4.2_04]
1.Create the project with the main class
2.Click the package containing this main class
(e.g 'aaa' package)
3.Select in popup menu Refactoring -> Rename...
4.Type new name (e.g. 'bbb')
5.Press 'Do Refactoring'
6.Package is renamed but the code in main class
contais line without change:
package aaa;

Notice:due this issue I am not able to run the
project then:-(
Comment 1 Jan Becicka 2004-06-14 10:39:52 UTC
Yes you are right, it should work - and it worked. I'll look at it.
Comment 2 Tomas Hurka 2004-06-14 15:03:46 UTC
FIxed in trunk. Note that this does not work only if the package is simple identifier. If the 
package is in form aa.bbb rename works OK.

Checking in MDRParser.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/parser/MDRParser.java,v  <--  
MDRParser.java
new revision: 1.11; previous revision: 1.10
done
Comment 3 Jaromir Uhrik 2004-08-12 15:38:36 UTC
Verified in 20040812; j2sdk1.5.0-beta3-b59.