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 65773 - [50cat] main comment of the class not updated when I rename the class.
Summary: [50cat] main comment of the class not updated when I rename the class.
Status: VERIFIED DUPLICATE of bug 60674
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-03 22:52 UTC by vbrabant
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 vbrabant 2005-10-03 22:52:11 UTC
[ BUILD # : Beta ]
[ JDK VERSION : 1.5.0_05 ]

I create a new class, called NewClass in the package newpackage.

I have that as main comment for the class.

/*
 * NewClass.java
 *
 * Created on 3 octobre 2005, 23:47
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

I choose Refactor, Rename and be sure that Apply Rename on Comments is well selected, and click on Next.

In the Refactoring view, I can see that // * NewClass.java would be taken into account.
(see screenshot in attach)
I click on Do refactoring
Class is well renamed into MyClass. File is well renamed into MyClass.java. Comment of the constructor, and the constructor is up-to-date.
But not comment of the class.

Look at here:
/*
 * NewClass.java
 *
 * Created on 3 octobre 2005, 23:47
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package newpackage;

/**
 *
 * @author Vincent
 */
public class MyClass {
    
    /**
     * Creates a new instance of MyClass
     */
    public MyClass() {
    }
    
}
Comment 1 Daniel Prusa 2005-10-04 09:38:37 UTC
This bug has been already fixed in trunk.

*** This issue has been marked as a duplicate of 60674 ***
Comment 2 vbrabant 2005-10-14 22:43:18 UTC
Verified in QBUILD 20051013