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

Summary: Rename on variables does not work
Product: javascript Reporter: Martin Schovanek <mschovanek>
Component: EditorAssignee: Daniel Prusa <dprusa>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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