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 101212 - rename refactoring deletes code
Summary: rename refactoring deletes code
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
: 101174 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-16 19:27 UTC by Pavel Buzek
Modified: 2009-02-27 14:26 UTC (History)
1 user (show)

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 Pavel Buzek 2007-04-16 19:27:07 UTC
I have a javascript file with this content:
            function foo () {
            
            }
            function bar() {
            foo()
            }

I step on foo() (I tried both on the first line or on the 5th line) and I select
menu Refactoring | Rename. I get a dialog asking for name, I type something
("ahoj") and the result is that the whole file looks like this:
            ahojfunction bar() {
            foo()
            }
Comment 1 Daniel Prusa 2007-04-17 13:32:19 UTC
reproducible, bounds in refactoring element have to be set for function name only
Comment 2 Daniel Prusa 2007-04-17 13:33:54 UTC
*** Issue 101174 has been marked as a duplicate of this issue. ***
Comment 3 Daniel Prusa 2007-04-17 15:15:41 UTC
Fixed.
Comment 4 Radim Roska 2007-08-07 09:38:33 UTC
VERIFIED