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 142241

Summary: Renaming corrupts source code
Product: java Reporter: J Bachorik <yardus>
Component: RefactoringAssignee: issues@java <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description J Bachorik 2008-07-30 15:01:48 UTC
Product Version: NetBeans IDE Dev (Build 200807300201)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b12
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)

When renaming an element the resulting name is in the form of <name><name>, eg. when renaming to MyTest the name used
will be MyTestMyTest.
This happens for classes and packages as well as variables. It's especially annoying in case of classes and packages as
it renders the source code invalid.
Instant rename works ok.
Comment 1 J Bachorik 2008-07-30 15:08:35 UTC
The duplication also happens for code generation (generate constructor, generate getters, etc...)
Comment 2 Petr Dvorak 2008-07-30 15:21:46 UTC

*** This issue has been marked as a duplicate of 142199 ***