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 44721 - Cannot rename, class Main already exists in package tiger.newpackage.
Summary: Cannot rename, class Main already exists in package tiger.newpackage.
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: PC Other
: P3 blocker (vote)
Assignee: Jan Becicka
Depends on:
Blocks: 44713
  Show dependency tree
Reported: 2004-06-10 21:23 UTC by vbrabant
Modified: 2007-04-03 18:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description vbrabant 2004-06-10 21:23:35 UTC
I  wanted to rename the class Main to MainClass
via the main menu..

Everything was ok.

Now, I do the inverse operation, but by clicking
on the node.

But at that moment, I received the following message:
Cannot rename, class Main already exists in
package tiger.newpackage.
And I clicked on Cancel.

But the node is named Main, the tab is named Main,
but the content of the java source file is the

public class MainClass {
    /** Creates a new instance of Main */
    public MainClass() {
Comment 1 Jan Becicka 2004-06-14 16:16:20 UTC
I'm sorry I cannot reproduce this bug. Can you still reproduce it in
latest builds? Thanks.

Comment 2 vbrabant 2004-06-14 19:41:44 UTC
I will try it tommorow with the build of this night
Comment 3 vbrabant 2004-06-15 08:04:57 UTC
The Daily build of 14 June is not available.
So, impossible for me to help you.
Comment 4 Jan Becicka 2004-06-18 11:38:32 UTC

Checking in org/netbeans/modules/refactoring/api/;
new revision: 1.8; previous revision: 1.7
Processing log script arguments...
More commits to come...
Checking in org/netbeans/modules/refactoring/ui/;
new revision: 1.7; previous revision: 1.6