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 - Renaming corrupts source code
Summary: Renaming corrupts source code
Status: RESOLVED DUPLICATE of bug 142199
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-30 15:01 UTC by J Bachorik
Modified: 2008-07-30 15:21 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 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 ***