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 240293

Summary: Header template duplicated when some re-factoring done in the java class
Product: java Reporter: adithyank
Component: EditorAssignee: Dusan Balek <dbalek>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description adithyank 2014-01-11 15:27:53 UTC
1. Create a new java class, say Person.java

The below is the created class
-------------------
/**
 * Person.java
 *
 * @purpose
 *
 * @see
 *
 * @author K Adithyan
 *
 * @created			Jan 11, 2014 8:53:04 PM
 */

package javacode.test;

public class Person 
{
	
}
------------------

2. Pls note some header template is configured in my netbeans
3. Now click Person string in class header and click Refactor -> Rename
4. Type Person2 and press enter
5. Now, the editor shows the below file

---------
/**
 * Person.java
 *
 * @purpose
 *
 * @see
 *
 * @author K Adithyan
 *
 * @created			Jan 11, 2014 8:53:04 PM
 *//**
 * Person.java
 *
 * @purpose
 *
 * @see
 *
 * @author K Adithyan
 *
 * @created			Jan 11, 2014 8:53:04 PM
 */

package javacode.test;

public class Person2 
{
	
}
---------
6. Pls notice that the header text is duplicated some how.
7. This happens to method name re-factoring also.

My platform details are given below

Product Version: NetBeans IDE Dev (Build 201401070002)
Updates: Updates available
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 2.6.32-431.3.1.el6.i686 running on i386; UTF-8; en_US (nb)
User directory: /root/.netbeans/dev
Cache directory: /root/.cache/netbeans/dev
Comment 1 Jiri Prox 2014-01-13 11:57:11 UTC

*** This bug has been marked as a duplicate of bug 239849 ***