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 101181 - Rename on variables does not work
Summary: Rename on variables does not work
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-16 16:08 UTC by Martin Schovanek
Modified: 2009-02-27 14:26 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 Martin Schovanek 2007-04-16 16:08:39 UTC
[#200704151800, jdk1.5.0]

to reproduce:
-------------
1) type in a .js
  var x1;
  var x2=x1+x1;
2) rename x1 on second line to x3
ERROR: IDE refactors the code to:
  var x3;
  var x2=x1+x1;

The x1s on the second line are not renamed.
Comment 1 Martin Schovanek 2007-04-16 18:01:06 UTC
ERROR2: the .js file is renamed to x3 => P1
Comment 2 Daniel Prusa 2007-04-17 13:35:16 UTC
reproducible, usages of the varible declaration not detected
Comment 3 Daniel Prusa 2007-04-17 15:15:13 UTC
first problem fixed
Comment 4 Daniel Prusa 2007-04-17 15:40:22 UTC
second problem fixed too

/cvs/scripting/javascript/src/org/netbeans/modules/languages/javascript/refactoring/RenameRefactoringUI.java
new revision: 1.3; previous revision: 1.2
Comment 5 Radim Roska 2007-08-07 09:40:34 UTC
VERIFIED