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 115703 - Refactor > Rename action should warn when New Name exists
Summary: Refactor > Rename action should warn when New Name exists
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2007-09-17 13:04 UTC by Martin Schovanek
Modified: 2014-01-16 10:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schovanek 2007-09-17 13:04:38 UTC
[#200709150000, jdk1.5.0]

to reproduce:
1) have a .js like:
var x;
var y;
2) rename x to y
ERROR: user is not warned that the name y is already used. Eg Java does not allow this.
Comment 1 Jan Jancura 2007-09-18 17:33:19 UTC
We will look at it.
Comment 2 Daniel Prusa 2008-02-01 12:47:22 UTC
Fixed, rev. 22f70095392c.
Comment 3 polan 2008-06-18 09:45:55 UTC
[Build 200806180005, JDK 1.6.0]

Doesn't look like fixed to me.

In case of the example in the first post, it works (highlighting name collisions in red), but this doesn't:

1) Have a .js file like:
var b=2;
var c=4;

2) Rename b to c
ERROR: There is no warning or red highlight either on the declaration or the usage.

Comment 4 Marek Fukala 2009-04-20 15:03:20 UTC
This is a 'regression' of the GSF based javascript support written by Tor. The original code where the issue was fixes
has been deleted. This is IMHO a low priority issue anyway.