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 223118 - Context of public and private variables with same name is mixed up
Summary: Context of public and private variables with same name is mixed up
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
: 244570 252412 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-01 23:45 UTC by Vladimir Riha
Modified: 2015-05-22 09:00 UTC (History)
2 users (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 Vladimir Riha 2012-12-01 23:45:57 UTC
This is probably far away from common usage, but this:

function Test(){
    var name = 1;
    this.name = 2;
}

Try highlight occurrences or rename|refactor of one of the "name" property => both public and private ones are affected


Product Version: NetBeans IDE Dev (Build web-main-9401-on-20121201)
Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b17
Runtime: Java(TM) SE Runtime Environment 1.7.0-b147
System: Linux version 3.5.0-18-generic running on amd64; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2012-12-07 17:28:57 UTC
I'm not able to fix it in the short time frame. The problem is that currently there can exists only one property with the same name for one object. In this case there are two, one private and one public.
Comment 2 Vladimir Riha 2014-07-01 12:31:25 UTC
*** Bug 244570 has been marked as a duplicate of this bug. ***
Comment 3 Petr Pisl 2015-05-22 09:00:15 UTC
*** Bug 252412 has been marked as a duplicate of this bug. ***